Skip to content

Commit

Permalink
[lua] fix a bug calling CCLuaLog with multiple params in hello.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Walzer committed Jul 4, 2011
1 parent 49d9a5e commit 8faf346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HelloLua/Resource/hello.lua
Expand Up @@ -31,10 +31,10 @@ function btnTouchMove(e)
end

function btnTouchBegin(e)
cocos2d.CCLuaLog("btnTouchBegin")
for k,v in ipairs(e) do
pointBegin = v:locationInView(v:view())
pointBegin = cocos2d.CCDirector:sharedDirector():convertToGL(pointBegin)
cocos2d.CCLuaLog("btnTouchBegin, x= %d, y = %d", pointBegin.x, pointBegin.y)
end
end

Expand Down

0 comments on commit 8faf346

Please sign in to comment.