- optimized the FName versions of IsDescendantOf and IsKindOf. These can be done without first looking up the class type itself.
This commit is contained in:
parent
31223ca180
commit
a6785afddb
28 changed files with 126 additions and 97 deletions
|
|
@ -187,7 +187,7 @@ static void AddOneKey(Keygroup *keygroup, PClassActor *mi, FScanner &sc)
|
|||
keygroup->anykeylist.Push (k);
|
||||
|
||||
//... but only keys get key numbers!
|
||||
if (mi->IsDescendantOf(PClass::FindActor(NAME_Key)))
|
||||
if (mi->IsDescendantOf(NAME_Key))
|
||||
{
|
||||
if (!ignorekey &&
|
||||
GetDefaultByType(mi)->special1 == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue