From fa22acca5d524bedbee99d20028fb19f5a3eb970 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 21 Jul 2016 12:01:06 +0200 Subject: [PATCH] - fixed: Dehacked's 'Speed' value should be treated as signed when being assigned to a double variable. --- src/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index f79924b2b8..387e05be59 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -921,7 +921,7 @@ static int PatchThing (int thingy) { if (stricmp (Line1, "Speed") == 0) { - info->Speed = val; // handle fixed point later. + info->Speed = (signed long)val; // handle fixed point later. } else if (stricmp (Line1, "Width") == 0) {