Ok, I'm really paying for my hubris. Corrected a faulty optimisation in my fix.

This commit is contained in:
toaster 2019-11-13 17:06:54 +00:00
parent 527195c214
commit ec44b24f72
1 changed files with 5 additions and 1 deletions

View File

@ -5175,9 +5175,13 @@ void A_SignPlayer(mobj_t *actor)
if (!skincheck(skincount)) if (!skincheck(skincount))
skincount++; skincount++;
skinnum = P_RandomKey(skincount); skinnum = P_RandomKey(skincount);
for (skincount = skinnum; skincount < numskins; skincount++) for (skincount = 0; skincount < numskins; skincount++)
{
if (skincheck(skincount)) if (skincheck(skincount))
skinnum++; skinnum++;
if (skincount > skinnum)
break;
}
} }
else // otherwise, advance 1 skin else // otherwise, advance 1 skin
{ {