mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- Fixed: FRandom told the expression evaluator that it returned an int instead of a float, so
using it in in any expression would automatically downcast it to an int unless ① its sibling in the expression tree was a float, or ② it was the only thing in the expression. SVN r3721 (trunk)
This commit is contained in:
parent
ce8ca26bc9
commit
4bbc9266e2
1 changed files with 1 additions and 0 deletions
|
@ -1698,6 +1698,7 @@ FxFRandom::FxFRandom(FRandom *r, FxExpression *mi, FxExpression *ma, const FScri
|
|||
min = mi;
|
||||
max = ma;
|
||||
}
|
||||
ValueType = VAL_Float;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue