From 85d456d30810347257a33d9443d4ad158d6d5fb1 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 4 Dec 2018 14:15:29 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_graphics.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_graphics.cpp') diff --git a/src/lua/modules/graphics/je_lua_graphics.cpp b/src/lua/modules/graphics/je_lua_graphics.cpp index 34ef8e7..867547d 100644 --- a/src/lua/modules/graphics/je_lua_graphics.cpp +++ b/src/lua/modules/graphics/je_lua_graphics.cpp @@ -388,8 +388,8 @@ namespace JinEngine { if (!luax_istype(L, 1, Jin_Lua_Sprite)) return; - LuaObject* pxySprite = (LuaObject*)luax_toudata(L, 1); - Sprite* sprite = pxySprite->getObject(); + LuaObject* luaSprite = (LuaObject*)luax_toudata(L, 1); + Sprite* sprite = luaSprite->getObject(); float x = luax_checknumber(L, 2); float y = luax_checknumber(L, 3); float sx = luax_checknumber(L, 4); @@ -809,8 +809,8 @@ namespace JinEngine for (int i = 1; i <= n; ++i) { luax_rawgeti(L, 1, i); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); - Shared& shrSprite = pxySprite->getShared(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); + Shared& shrSprite = luaSprite->getShared(); (*shrAnimation)->addFrame(shrSprite.getObject()); int index = (*shrAnimation)->getFrameCount() - 1; luaAnimation->setDependency((int)AnimationDependency::DEP_SPRITES + index, &shrSprite); @@ -829,14 +829,14 @@ namespace JinEngine Shared* shrAniamtor = new Shared(new Animator(), Jin_Lua_Animator); if (argc >= 1) { - LuaObject* pxyAnimation = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); - Shared& shrAnimtion = pxyAnimation->getShared(); + LuaObject* luaAnimation = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); + Shared& shrAnimtion = luaAnimation->getShared(); (*shrAniamtor)->setAnimation(shrAnimtion.getObject()); - LuaObject* pxyAnimator = luax_newinstance(L, Jin_Lua_Animator, shrAniamtor); - pxyAnimator->setDependency((int)AnimatorDependency::DEP_ANIMATION, &shrAnimtion); + LuaObject* luaAnimator = luax_newinstance(L, Jin_Lua_Animator, shrAniamtor); + luaAnimator->setDependency((int)AnimatorDependency::DEP_ANIMATION, &shrAnimtion); return 1; } - LuaObject* pxyAnimator = luax_newinstance(L, Jin_Lua_Animator, shrAniamtor); + LuaObject* luaAnimator = luax_newinstance(L, Jin_Lua_Animator, shrAniamtor); return 1; } -- cgit v1.1-26-g67d0