- Removed the RUNTIME_TYPE macro. I just included it because MFC has one, but it's pretty

pointless here.

SVN r2267 (scripting)
This commit is contained in:
Randy Heit 2010-04-04 02:58:58 +00:00
commit 19f5b1dea1
9 changed files with 14 additions and 16 deletions

View file

@ -1178,8 +1178,7 @@ bool P_LookForMonsters (AActor *actor)
{ // Stop searching
return false;
}
if (mo->IsKindOf (RUNTIME_TYPE(actor)) ||
actor->IsKindOf (RUNTIME_TYPE(mo)))
if (mo->IsKindOf (actor->GetClass()) || actor->IsKindOf (mo->GetClass()))
{ // [RH] Don't go after same species
continue;
}