- fixed random number generation in SpawnFizzle.

This should now produce the same value range as Hexen's original code.
This commit is contained in:
Christoph Oelckers 2018-12-23 12:40:26 +01:00
parent c1a86e9a4d
commit fcfccfe739

View file

@ -246,8 +246,8 @@ class Heresiarch : Actor
if (mo)
{
double rangle = Angle + random[Heresiarch](0, 4) * (4096 / 360.);
mo.Vel.X = random[Heresiarch](0, speed - 1) * cos(rangle);
mo.Vel.Y = random[Heresiarch](0, speed - 1) * sin(rangle);
mo.Vel.X = random[Heresiarch](0, int(speed) - 1) * cos(rangle);
mo.Vel.Y = random[Heresiarch](0, int(speed) - 1) * sin(rangle);
mo.Vel.Z = 2;
}
}