mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +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
c1a86e9a4d
commit
fcfccfe739
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