1
0
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:
Michał W. Urbańczyk
2013-02-27 07:40:21 +00:00
parent a9fd7b806c
commit 459e858756

View File

@ -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
{
if (hexFrom < 0) //turret
if (hexTo < 0 || hexFrom < 0) //turret
return false;
if (toDoubleWide)