浏览代码

Fixed unnecessary turret turning.

Michał W. Urbańczyk 12 年之前
父节点
当前提交
9cc7a28222
共有 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
 {
-	if (hexTo < 0) //turret
+	if (hexFrom < 0) //turret
 		return false;
 
 	if (toDoubleWide)