mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Update for previous rev. Support for synchronous building demolition.
This commit is contained in:
@ -352,7 +352,15 @@ DLL_EXPORT void NewStructures::applyGs( CGameState *gs )
|
||||
}
|
||||
t->builded = builded;
|
||||
}
|
||||
|
||||
DLL_EXPORT void RazeStructures::applyGs( CGameState *gs )
|
||||
{
|
||||
CGTownInstance *t = gs->getTown(tid);
|
||||
BOOST_FOREACH(si32 id,bid)
|
||||
{
|
||||
t->builtBuildings.erase(id);
|
||||
}
|
||||
t->destroyed = builded; //yeaha
|
||||
}
|
||||
DLL_EXPORT void SetAvailableCreatures::applyGs( CGameState *gs )
|
||||
{
|
||||
CGDwelling *dw = dynamic_cast<CGDwelling*>(gs->map->objects[tid]);
|
||||
|
Reference in New Issue
Block a user