Преглед изворни кода

One more fix for turrets — defender should also not be turned.
Development build 0.91c.

Michał W. Urbańczyk пре 12 година
родитељ
комит
459e858756
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/CBattleCallback.cpp

+ 1 - 1
lib/CBattleCallback.cpp

@@ -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)