fix usewith, mana null
This commit is contained in:
parent
b17cc43fc6
commit
7fef0809cb
|
@ -27,7 +27,7 @@ function Game.processMouseAction(menuPosition, mouseButton, autoWalk, lookThing,
|
||||||
|
|
||||||
if not Options.classicControl then
|
if not Options.classicControl then
|
||||||
if mouseButton == MouseLeftButton and selectedThing then
|
if mouseButton == MouseLeftButton and selectedThing then
|
||||||
Game.useWith(Game.getSelectedThing(), useThing)
|
Game.useWith(Game.getSelectedThing(), multiUseThing)
|
||||||
Game.setSelectedThing(nil)
|
Game.setSelectedThing(nil)
|
||||||
restoreCursor()
|
restoreCursor()
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -33,6 +33,9 @@ LocalPlayer::LocalPlayer()
|
||||||
m_walkLocked = false;
|
m_walkLocked = false;
|
||||||
m_lastPrewalkDone = true;
|
m_lastPrewalkDone = true;
|
||||||
m_icons = 0;
|
m_icons = 0;
|
||||||
|
|
||||||
|
for(int i = 0; i < Otc::LastStatistic; ++i)
|
||||||
|
m_statistics[i] = -1; // sets an invalid value to ensure lua event will be sent
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocalPlayer::lockWalk()
|
void LocalPlayer::lockWalk()
|
||||||
|
|
Loading…
Reference in New Issue