1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

* water elemental will really be treated as 2 hex creature

* potential infinite loop in reverseCreature removed
* proper handling of battle cursor
This commit is contained in:
mateuszb
2008-10-05 12:34:14 +00:00
parent c5a5cb7b38
commit 7104326563
3 changed files with 2 additions and 4 deletions

View File

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

View File

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

View File

@@ -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[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 creatures[140].abilities.insert(DOUBLE_WIDE);//boar should be treated as double-wide
} }