minor fixes

* change chase mode while walking and attacking
* avoid lua errors in frame counter when starting
This commit is contained in:
Eduardo Bart
2012-06-07 08:52:17 -03:00
parent 48d243a11d
commit 486837a61d
3 changed files with 45 additions and 24 deletions

View File

@@ -81,5 +81,8 @@ TopPanel
margin-right: 5
@onSetup: |
cycleEvent(function()
rootWidget:recursiveGetChildById('frameCounter'):setText('FPS: ' .. g_app.getBackgroundPaneFps())
local frameCounter = rootWidget:recursiveGetChildById('frameCounter')
if frameCounter then
frameCounter:setText('FPS: ' .. g_app.getBackgroundPaneFps())
end
end, 250)