Ver código fonte

* minor fix for commit r1178

mateuszb 16 anos atrás
pai
commit
1fd156e79d
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      server/CGameHandler.cpp

+ 2 - 0
server/CGameHandler.cpp

@@ -2480,6 +2480,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
 		}
 		}
 	case 9: //catapult
 	case 9: //catapult
 		{
 		{
+			sendAndApply(&StartAction(ba));
 			const CGHeroInstance * attackingHero = (ba.side) ? gs->getHero(gs->curB->hero2) : gs->getHero(gs->curB->hero1);
 			const CGHeroInstance * attackingHero = (ba.side) ? gs->getHero(gs->curB->hero2) : gs->getHero(gs->curB->hero1);
 			CHeroHandler::SBallisticsLevelInfo sbi = VLC->heroh->ballistics[attackingHero->getSecSkillLevel(20)]; //artillery
 			CHeroHandler::SBallisticsLevelInfo sbi = VLC->heroh->ballistics[attackingHero->getSecSkillLevel(20)]; //artillery
 			
 			
@@ -2539,6 +2540,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
 
 
 				sendAndApply(&ca);
 				sendAndApply(&ca);
 			}
 			}
+			sendAndApply(&EndAction());
 			break;
 			break;
 		}
 		}
 	}
 	}