Fixes to compile with clang

This commit is contained in:
Eduardo Bart
2013-01-29 14:35:20 -02:00
parent 4751941e4f
commit 8d6ccb8d83
8 changed files with 9 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ limitZoom = false
currentViewMode = 0
smartWalkDirs = {}
smartWalkDir = nil
walkFunction = g_game.walk
function init()
g_ui.importStyle('styles/countwindow')
@@ -262,9 +263,9 @@ end
function smartWalk(dir)
if g_keyboard.getModifiers() == KeyboardNoModifier then
if smartWalkDir then
g_game.walk(smartWalkDir)
walkFunction(smartWalkDir)
else
g_game.walk(dir)
walkFunction(dir)
end
return true
end