mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Support for compressed textures
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user