- RR: fixed randomization for hitscan weapons.

This commit is contained in:
Christoph Oelckers 2022-10-24 21:25:45 +02:00
parent f9d8763ed5
commit 33002b37a9

View file

@ -225,7 +225,7 @@ static void shootweapon(DDukeActor* actor, int p, DVector3 pos, DAngle ang, int
{
ang += DAngle22_5 / 8 - randomAngle(22.5 / 4);
zvel = -ps[p].horizon.sum().asbuildf() / 8;
zvel += 128 - (krand() & 255);
zvel += 0.5 - krandf(1);
}
}
else