1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Drop battle elapsed time measurement, restore avHexes.

Github validation report fixes.
This commit is contained in:
MichalZr6
2025-01-03 00:11:41 +01:00
parent dad6437661
commit 4031006317
17 changed files with 60 additions and 62 deletions

View File

@ -99,11 +99,13 @@ int BattleCbProxy::getUnitByPos(lua_State * L)
if(!S.tryGet(1, object))
return S.retVoid();
BattleHex hex;
si16 hexVal;
if(!S.tryGet(2, hex.hex))
if(!S.tryGet(2, hexVal))
return S.retNil();
BattleHex hex(hexVal);
bool onlyAlive;
if(!S.tryGet(3, onlyAlive))