- Added Gez's automap enhancements but made the new key icon optional.
SVN r2462 (trunk)
This commit is contained in:
parent
1bda16cc45
commit
35ba99ed31
4 changed files with 95 additions and 24 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue