mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
One more fix for turrets — defender should also not be turned.
Development build 0.91c.
This commit is contained in:
@ -1396,7 +1396,7 @@ bool CBattleInfoCallback::isToReverseHlp (BattleHex hexFrom, BattleHex hexTo, bo
|
|||||||
|
|
||||||
bool CBattleInfoCallback::isToReverse (BattleHex hexFrom, BattleHex hexTo, bool curDir, bool toDoubleWide, bool toDir) const //TODO: this should apply also to mechanics and cursor interface
|
bool CBattleInfoCallback::isToReverse (BattleHex hexFrom, BattleHex hexTo, bool curDir, bool toDoubleWide, bool toDir) const //TODO: this should apply also to mechanics and cursor interface
|
||||||
{
|
{
|
||||||
if (hexFrom < 0) //turret
|
if (hexTo < 0 || hexFrom < 0) //turret
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (toDoubleWide)
|
if (toDoubleWide)
|
||||||
|
Reference in New Issue
Block a user