diff options
author | chai <chaifix@163.com> | 2018-12-04 14:15:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-04 14:15:29 +0800 |
commit | 85d456d30810347257a33d9443d4ad158d6d5fb1 (patch) | |
tree | 0d17eb095c42b9ad3168130f0517cdd9a73b3edc /src/lua/modules/graphics/je_lua_animation.cpp | |
parent | e1bc01ce6948283930f7f29a640a91a27a29c997 (diff) |
*格式化代码
Diffstat (limited to 'src/lua/modules/graphics/je_lua_animation.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_animation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/modules/graphics/je_lua_animation.cpp b/src/lua/modules/graphics/je_lua_animation.cpp index 4cb513c..bdba10d 100644 --- a/src/lua/modules/graphics/je_lua_animation.cpp +++ b/src/lua/modules/graphics/je_lua_animation.cpp @@ -40,8 +40,8 @@ namespace JinEngine { LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); SharedAnimation shrAnimation = luaObj->getShared<Animation>(); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); - Shared<Sprite>& shrSprite = pxySprite->getShared<Sprite>(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); + Shared<Sprite>& shrSprite = luaSprite->getShared<Sprite>(); shrAnimation->addFrame(shrSprite.getObject()); int i = shrAnimation->getFrameCount() - 1; luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + i, &shrSprite); @@ -62,8 +62,8 @@ namespace JinEngine for (int i = 1; i <= n; ++i) { luax_rawgeti(L, 2, i); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); - Shared<Sprite>& shrSprite = pxySprite->getShared<Sprite>(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); + Shared<Sprite>& shrSprite = luaSprite->getShared<Sprite>(); shrAnimation->addFrame(shrSprite.getObject()); int index = shrAnimation->getFrameCount() - 1; luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + index, &shrSprite); |