This commit is contained in:
nashmuhandes 2025-03-13 03:00:11 +08:00
commit 799011d327
89 changed files with 3735 additions and 2607 deletions

View file

@ -2916,11 +2916,18 @@ void DAutomap::drawKeys ()
mpoint_t p;
DAngle angle;
auto it = Level->GetThinkerIterator<AActor>(NAME_Key);
auto it = Level->GetThinkerIterator<AActor>(NAME_Inventory);
AActor *key;
while ((key = it.Next()) != nullptr)
{
auto cls = key->GetClass();
if (cls->IsDescendantOf(NAME_DehackedPickup))
{
cls = cls->ActorInfo()->Replacee;
}
if (!cls->IsDescendantOf(NAME_Key)) continue;
DVector3 pos = key->PosRelative(MapPortalGroup);
p.x = pos.X;
p.y = pos.Y;