- 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:
Christoph Oelckers 2020-11-03 06:51:29 +01:00
parent 595a2156e4
commit 8d1409a708

View file

@ -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);