From 2161ad2c4b74887d5b9c686c4f6cb1cf6f4ba903 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 Apr 2016 12:48:51 +0200 Subject: [PATCH] - fixed: P_GetMapColorForKey did not check for keys that worked as an alias defined through their species. --- src/g_shared/a_keys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_shared/a_keys.cpp b/src/g_shared/a_keys.cpp index 9e146b942..1164135bc 100644 --- a/src/g_shared/a_keys.cpp +++ b/src/g_shared/a_keys.cpp @@ -22,7 +22,7 @@ struct OneKey if (owner->IsKindOf(RUNTIME_CLASS(AKey))) { // P_GetMapColorForKey() checks the key directly - return owner->IsA(key); + return owner->IsA(key) || owner->GetSpecies() == key->TypeName; } else {