Browse Source

Ench0's patch from #948.

Michał W. Urbańczyk 13 years ago
parent
commit
dc4d30df0e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      client/BattleInterface/CBattleInterface.cpp

+ 3 - 2
client/BattleInterface/CBattleInterface.cpp

@@ -632,10 +632,10 @@ void CBattleInterface::show(SDL_Surface * to)
 						CSDL_Ext::blit8bppAlphaTo24bpp(cellShade, NULL, to, &temp_rect);
 					}
 				}
-				//patch by ench0
 
+				//patch by ench0: show enemy stack movement shadow
 				// activeStack == NULL means it is opponent's turn...
-				if(activeStack)
+				if(activeStack && settings["battle"]["stackRange"].Bool())
 				{
 					// display the movement shadow of the stack at b (i.e. stack under mouse)
 					const CStack * const shere = curInt->cb->battleGetStackByPos(b, false);
@@ -651,6 +651,7 @@ void CBattleInterface::show(SDL_Surface * to)
 						}
 					}
 				}
+
 				//always highlight pointed hex
 				int x = 14 + ((b/GameConstants::BFIELD_WIDTH)%2==0 ? 22 : 0) + 44*(b%GameConstants::BFIELD_WIDTH) + pos.x;
 				int y = 86 + 42 * (b/GameConstants::BFIELD_WIDTH) + pos.y;