1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

* reworked system of animations in battles; it's not fully working yet, but crashes should not occur

* fix for previous fix for two-hex creatures (my previous commit) (this one should work better, certainly has nicer code)
This commit is contained in:
mateuszb
2009-09-10 11:28:34 +00:00
parent 3d2ab9c753
commit 3f5c98ac7c
4 changed files with 1100 additions and 794 deletions

View File

@ -720,7 +720,10 @@ DLL_EXPORT void BattleAttack::applyGs( CGameState *gs )
DLL_EXPORT void StartAction::applyGs( CGameState *gs )
{
CStack *st = gs->curB->getStack(ba.stackNumber);
assert(st);
if(ba.actionType != 1) //don't check for stack if it's custom action by hero
assert(st);
switch(ba.actionType)
{
case 3: