- Prologo quasi acabat

This commit is contained in:
2024-10-08 13:59:04 +02:00
parent 119136332b
commit 9827865e9c
16 changed files with 332 additions and 113 deletions

View File

@@ -283,6 +283,17 @@ namespace room
actor::remove(act);
act = nullptr;
}
} else if (act->name[0]=='X') { // Es un objecte del prólogo sense arreplegar
if (!::editor::isDevMode() && actor::hero::getPrologoObjectState(act->name[2]-48)!=PROLOGO_OBJECT_INITIAL)
{
actor::remove(act);
act = nullptr;
}
} else if (act->name[0]=='Y') { // Es un hueco on deixar un objecte del prólogo
if (!::editor::isDevMode() && actor::hero::getPrologoObjectState(act->name[2]-48)==PROLOGO_OBJECT_LEFT)
{
act->name[0] = 'Z';
}
}
}
if (act) actor::setDirty(act, true);