mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Next part of Seer Hut code, including large number of Components, packs and help functions.
Mapa now contains separate vector of monsters to avoid linear search trough all objects.
This commit is contained in:
@ -249,6 +249,11 @@ DLL_EXPORT void RemoveObject::applyGs( CGameState *gs )
|
||||
|
||||
//TODO: add to the pool?
|
||||
}
|
||||
else if (obj->ID==CREI_TYPE) //only fixed monsters can be a part of quest
|
||||
{
|
||||
CGCreature *cre = static_cast<CGCreature*>(obj);
|
||||
gs->map->monsters[cre->identifier] = NULL;
|
||||
}
|
||||
gs->map->objects[id] = NULL;
|
||||
|
||||
//unblock tiles
|
||||
|
Reference in New Issue
Block a user