1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* flaggable objects change their color on minimap when taken over

* corrected damage inflicted by spells and ballista
* minor changes
This commit is contained in:
mateuszb
2009-07-30 12:49:45 +00:00
parent fec75cdc04
commit 8e63c73cf8
16 changed files with 227 additions and 69 deletions

View File

@@ -280,6 +280,16 @@ void InfoWindow::applyCl( CClient *cl )
tlog2 << "We received InfoWindow for not our player...\n";
}
void SetObjectProperty::applyCl( CClient *cl )
{
//inform all players that see this object
for(std::map<ui8,CGameInterface *>::const_iterator it = cl->playerint.begin(); it != cl->playerint.end(); ++it)
{
//if(cl->gs->isVisible(cl->gs->map->objects[id]), it->first)
INTERFACE_CALL_IF_PRESENT(it->first, objectPropertyChanged, this);
}
}
void HeroLevelUp::applyCl( CClient *cl )
{
CGHeroInstance *h = GS(cl)->getHero(heroid);