Support for compressed textures

This commit is contained in:
Eduardo Bart
2012-08-21 08:09:48 -03:00
parent 01a8e57a3c
commit ea4dd2f8e6
4 changed files with 17 additions and 9 deletions

View File

@@ -61,6 +61,10 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton)
local localPlayerPos = g_game.getLocalPlayer():getPosition()
local autoWalkPos = self:getPosition(mousePosition)
-- happens when clicking outside of map boundaries
if not autoWalkPos then return false end
if autoWalkPos.z ~= localPlayerPos.z then
local dz = autoWalkPos.z - localPlayerPos.z
autoWalkPos.x = autoWalkPos.x + dz