Browse Source

* water elemental will really be treated as 2 hex creature
* potential infinite loop in reverseCreature removed
* proper handling of battle cursor

mateuszb 17 years ago
parent
commit
7104326563
3 changed files with 2 additions and 4 deletions
  1. 0 2
      CBattleInterface.cpp
  2. 1 1
      CCursorHandler.cpp
  3. 1 1
      hch/CCreatureHandler.cpp

+ 0 - 2
CBattleInterface.cpp

@@ -554,8 +554,6 @@ bool CBattleInterface::reverseCreature(int number, int hex, bool wideTrick)
 		show();
 		CSDL_Ext::update();
 		SDL_framerateDelay(LOCPLINT->mainFPSmng);
-		if((animCount+1)%(4/animSpeed)==0)
-			creAnims[number]->incrementFrame();
 	}
 	creDir[number] = !creDir[number];
 

+ 1 - 1
CCursorHandler.cpp

@@ -33,7 +33,7 @@ void CCursorHandler::draw1()
 {
 	if(!Show) return;
 	int x = xpos, y = ypos;
-	if(mode==1)
+	if(mode==1 && number!=6)
 	{
 		x-=16;
 		y-=16;

+ 1 - 1
hch/CCreatureHandler.cpp

@@ -455,7 +455,7 @@ void CCreatureHandler::loadCreatures()
 
 
 
-	creatures[122].abilities.insert(DOUBLE_WIDE);//water elemental should be treated as double-wide
+	creatures[115].abilities.insert(DOUBLE_WIDE);//water elemental should be treated as double-wide
 	creatures[123].abilities.insert(DOUBLE_WIDE);//ice elemental should be treated as double-wide
 	creatures[140].abilities.insert(DOUBLE_WIDE);//boar should be treated as double-wide
 }