From e6184ccb96334b098f91f61ee05cdfd6cae79064 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 14 Feb 2022 20:05:42 +0100 Subject: [PATCH] - silence some warnings. --- src/r_data/gldefs.cpp | 2 +- wadsrc/static/zscript/actors/mbf21.zs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_data/gldefs.cpp b/src/r_data/gldefs.cpp index 73428851f..6ee6c3d50 100644 --- a/src/r_data/gldefs.cpp +++ b/src/r_data/gldefs.cpp @@ -1560,7 +1560,7 @@ class GLDefsParser ExtraUniformCVARData* oldextra = nullptr; sc.MustGetFloat(); - val.Float = oldval.Float = sc.Float; + val.Float = oldval.Float = (float)sc.Float; if (!cvar) { diff --git a/wadsrc/static/zscript/actors/mbf21.zs b/wadsrc/static/zscript/actors/mbf21.zs index a010f0e2c..c7fc2a8fb 100644 --- a/wadsrc/static/zscript/actors/mbf21.zs +++ b/wadsrc/static/zscript/actors/mbf21.zs @@ -507,7 +507,7 @@ extend class Weapon deprecated("2.3", "for Dehacked use only") void MBF21_SeekTracer(double threshold, double turnmax) { - A_SeekerMissile(threshold, turnmax, flags: SMF_PRECISE); // args get truncated to ints here, but it's close enough + A_SeekerMissile(int(threshold), int(turnmax), flags: SMF_PRECISE); // args get truncated to ints here, but it's close enough } } \ No newline at end of file