Few minor fixes from previous commit.

This commit is contained in:
BeniS
2012-07-13 05:29:44 +12:00
parent 8850528091
commit 935ca87d16
3 changed files with 18 additions and 18 deletions

View File

@@ -137,11 +137,11 @@ function Minimap.onButtonClick(id)
minimapWidget:setZoom(math.max(minimapWidget:getMaxZoomIn(), minimapWidget:getZoom()-15))
elseif id == "zoomOut" then
minimapWidget:setZoom(math.min(minimapWidget:getMaxZoomOut(), minimapWidget:getZoom()+15))
elseif id == "levelUp" then
elseif id == "floorUp" then
local pos = minimapWidget:getCameraPosition()
pos.z = pos.z - 1
minimapWidget:setCameraPosition(pos)
elseif id == "levelDown" then
elseif id == "floorDown" then
local pos = minimapWidget:getCameraPosition()
pos.z = pos.z + 1
minimapWidget:setCameraPosition(pos)