- Added Gez's automap enhancements but made the new key icon optional.

SVN r2462 (trunk)
This commit is contained in:
Christoph Oelckers 2010-07-25 21:46:51 +00:00
commit 35ba99ed31
4 changed files with 95 additions and 24 deletions

View file

@ -19,7 +19,12 @@ struct OneKey
bool check(AActor * owner)
{
return !!owner->FindInventory(key);
// P_GetMapColorForKey() checks the key directly
if (owner->IsKindOf (RUNTIME_CLASS(AKey)))
return owner->IsA(key);
// Other calls check an actor that may have a key in its inventory.
else
return !!owner->FindInventory(key);
}
};