mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
- fixed RNG setup in FxRandom.
This commit is contained in:
parent
94ed30e782
commit
6398c27646
1 changed files with 1 additions and 1 deletions
|
@ -5453,7 +5453,7 @@ FxRandom::FxRandom(EFxType type, FRandom * r, const FScriptPosition &pos)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
FxRandom::FxRandom(FRandom * r, FxExpression *mi, FxExpression *ma, const FScriptPosition &pos, bool nowarn)
|
FxRandom::FxRandom(FRandom * r, FxExpression *mi, FxExpression *ma, const FScriptPosition &pos, bool nowarn)
|
||||||
: FxRandom(EFX_Random, rng, pos)
|
: FxRandom(EFX_Random, r, pos)
|
||||||
{
|
{
|
||||||
assert(mi && ma);
|
assert(mi && ma);
|
||||||
min = new FxIntCast(mi, nowarn);
|
min = new FxIntCast(mi, nowarn);
|
||||||
|
|
Loading…
Reference in a new issue