mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 23:21:43 +00:00
- bring weaprec handling of RR in line with Duke.
This code set a sprite index where a tile number is expected by all other code checking this array. In the stock game this should never trigger, though, as the actor being checked is the burning dynamite which cannot be picked up again as-is.
This commit is contained in:
parent
595a2156e4
commit
8d1409a708
1 changed files with 2 additions and 2 deletions
|
@ -2724,11 +2724,11 @@ DETONATEB:
|
|||
if (ud.coop >= 1)
|
||||
{
|
||||
for (int j = 0; j < ps[p].weapreccnt; j++)
|
||||
if (ps[p].weaprecs[j] == actor->GetIndex())
|
||||
if (ps[p].weaprecs[j] == s->picnum)
|
||||
return;
|
||||
|
||||
if (ps[p].weapreccnt < 255)
|
||||
ps[p].weaprecs[ps[p].weapreccnt++] = actor->GetIndex();
|
||||
ps[p].weaprecs[ps[p].weapreccnt++] = s->picnum;
|
||||
}
|
||||
|
||||
addammo(DYNAMITE_WEAPON, &ps[p], 1);
|
||||
|
|
Loading…
Reference in a new issue