- [NEW] Ja funciona el tema de les parts

This commit is contained in:
2024-07-03 12:16:30 +02:00
parent c7186119c2
commit ea61a56c22
2 changed files with 8 additions and 2 deletions

View File

@@ -202,6 +202,12 @@ namespace room
actor::remove(act);
act = nullptr;
}
} else if (act->name[0]=='G') { // Es un ghost d'una part
if (actor::hero::wasPartCollected(&act->name[2]))
{
act->flags &= ~FLAG_ANIMATED;
act->bmp_rect.x += act->bmp_rect.w;
}
}
}
if (act) actor::setDirty(act, true);