Merge branch '4.14.1' of https://github.com/ZDoom/gzdoom
This commit is contained in:
commit
799011d327
89 changed files with 3735 additions and 2607 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue