Some overall fixes:

* Fix to market constraints.
* Fixed bug with skill percent not rounding.
* Dereference textEdit variable properly.
* Fix to the outfit window regarding mounts.
* Added enableResize to UIMiniWindow.
* Some minor edits.
This commit is contained in:
BeniS
2012-08-23 02:21:02 +12:00
parent 9eef114779
commit ecd1ec5c0d
8 changed files with 41 additions and 24 deletions

View File

@@ -56,15 +56,13 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton)
self.cancelNextRelease = false
return true
end
local tile = self:getTile(mousePosition)
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
local localPlayerPos = g_game.getLocalPlayer():getPosition()
if autoWalkPos.z ~= localPlayerPos.z then
local dz = autoWalkPos.z - localPlayerPos.z
autoWalkPos.x = autoWalkPos.x + dz
@@ -77,6 +75,7 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton)
local creatureThing
local multiUseThing
local tile = self:getTile(mousePosition)
if tile then
lookThing = tile:getTopLookThing()
useThing = tile:getTopUseThing()