1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* Bonus system caching updated, partially rewritten, much more robust, thread-safe

* Adjusted projectile speed, trebuchet canon speed
This commit is contained in:
beegee1
2011-07-13 18:39:02 +00:00
parent a7577ccb6b
commit 55e7959fd9
19 changed files with 396 additions and 173 deletions

View File

@@ -249,13 +249,13 @@ void GiveBonus::applyCl( CClient *cl )
case HERO:
{
const CGHeroInstance *h = GS(cl)->getHero(id);
INTERFACE_CALL_IF_PRESENT(h->tempOwner, heroBonusChanged, h, *h->bonuses.back(),true);
INTERFACE_CALL_IF_PRESENT(h->tempOwner, heroBonusChanged, h, *h->getBonusList().back(),true);
}
break;
case PLAYER:
{
const PlayerState *p = GS(cl)->getPlayer(id);
INTERFACE_CALL_IF_PRESENT(id, playerBonusChanged, *p->bonuses.back(), true);
INTERFACE_CALL_IF_PRESENT(id, playerBonusChanged, *p->getBonusList().back(), true);
}
break;
}