mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-22 12:11:17 +00:00
- fixed nnexts comparison with statcount.
This value is no longer maintained, so we got to count when the value is needed.
This commit is contained in:
parent
69283bfb0c
commit
1d28e166c6
1 changed files with 7 additions and 1 deletions
|
@ -3652,7 +3652,13 @@ bool condCheckGame(DBloodActor* aCond, const EVENT& event, int cmpOp, bool PUSH)
|
|||
case 30: return Chance((0x10000 * arg3) / kPercFull); // check chance
|
||||
case 31: return condCmp(nnExtRandom(arg1, arg2), arg1, arg2, cmpOp);
|
||||
/*----------------------------------------------------------------------------------------------------------------------------------*/
|
||||
case 47: return condCmp(gStatCount[ClipRange(arg3, 0, kMaxStatus)], arg1, arg2, cmpOp); // compare counter of specific statnum sprites
|
||||
case 47:
|
||||
{
|
||||
BloodStatIterator it(ClipRange(arg3, 0, kMaxStatus));
|
||||
int c = 0;
|
||||
while (it.Next()) c++;
|
||||
return condCmp(c, arg1, arg2, cmpOp); // compare counter of specific statnum sprites
|
||||
}
|
||||
case 48: return condCmp(Numsprites, arg1, arg2, cmpOp); // compare counter of total sprites
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue