mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 14:41:40 +00:00
- fixed random number generation in SpawnFizzle.
This should now produce the same value range as Hexen's original code.
This commit is contained in:
parent
ff12eab7e5
commit
18cec62458
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue