fix objects not appearing in boss rooms after rejoining persisted game

This commit is contained in:
Martin Michelsen
2024-09-27 22:52:01 -07:00
parent c8b8bf43f7
commit aa4a773095
3 changed files with 6 additions and 22 deletions
+2 -2
View File
@@ -2999,8 +2999,8 @@ static void on_set_entity_set_flag(shared_ptr<Client> c, uint8_t command, uint8_
l->log.info("(W-%02hhX-%" PRIX32 " script) construct_objects %04hX %04hX", event->floor, event->event_id, section, group);
for (auto* obj : l->map->get_objects(event->floor, section, group)) {
if (!(obj->set_flags & 0x0A)) {
l->log.info("(W-%02hhX-%" PRIX32 " script) Setting flags 0012 on object K-%hX", event->floor, event->event_id, obj->object_id);
obj->set_flags |= 0x12;
l->log.info("(W-%02hhX-%" PRIX32 " script) Setting flags 0010 on object K-%hX", event->floor, event->event_id, obj->object_id);
obj->set_flags |= 0x10;
}
}
break;