From f67243a40f41ece6c31496ddeb42bb389bb1e721 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 27 Jul 2016 08:23:00 +0200 Subject: [PATCH] - fixed: The NO_CHANGE constant shouldn't have been floatified because this is an input value for action specials which will remain integers. --- src/p_lnspec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_lnspec.cpp b/src/p_lnspec.cpp index c7d801cbb..307529636 100644 --- a/src/p_lnspec.cpp +++ b/src/p_lnspec.cpp @@ -2552,7 +2552,7 @@ FUNC(LS_Line_AlignFloor) FUNC(LS_Line_SetTextureOffset) // Line_SetTextureOffset (id, x, y, side, flags) { - const double NO_CHANGE = FLT_MAX; + const int NO_CHANGE = 32767 << 16; double farg1 = arg1 / 65536.; double farg2 = arg2 / 65536.; @@ -2607,7 +2607,7 @@ FUNC(LS_Line_SetTextureOffset) FUNC(LS_Line_SetTextureScale) // Line_SetTextureScale (id, x, y, side, flags) { - const double NO_CHANGE = FLT_MAX; + const int NO_CHANGE = 32767 << 16; double farg1 = arg1 / 65536.; double farg2 = arg2 / 65536.;