From 4bbc9266e2bc88a3030640f9287f7f725c44097e Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 1 Jul 2012 03:16:37 +0000 Subject: [PATCH] =?UTF-8?q?-=20Fixed:=20FRandom=20told=20the=20expression?= =?UTF-8?q?=20evaluator=20that=20it=20returned=20an=20int=20instead=20of?= =?UTF-8?q?=20a=20float,=20so=20=20=20using=20it=20in=20in=20any=20express?= =?UTF-8?q?ion=20would=20automatically=20downcast=20it=20to=20an=20int=20u?= =?UTF-8?q?nless=20=E2=91=A0=20its=20sibling=20in=20the=20expression=20tre?= =?UTF-8?q?e=20was=20a=20float,=20or=20=E2=91=A1=20it=20was=20the=20only?= =?UTF-8?q?=20thing=20in=20the=20expression.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN r3721 (trunk) --- src/thingdef/thingdef_expression.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thingdef/thingdef_expression.cpp b/src/thingdef/thingdef_expression.cpp index 64f5c9a4fc..57489b91e6 100644 --- a/src/thingdef/thingdef_expression.cpp +++ b/src/thingdef/thingdef_expression.cpp @@ -1698,6 +1698,7 @@ FxFRandom::FxFRandom(FRandom *r, FxExpression *mi, FxExpression *ma, const FScri min = mi; max = ma; } + ValueType = VAL_Float; } //==========================================================================