From e9d294191a450556b33c8a1e1d042293a4a3c3a9 Mon Sep 17 00:00:00 2001 From: Lance Date: Fri, 27 Jan 2006 03:05:33 +0000 Subject: [PATCH] fix msvc warnings, hopefully I dont break anything git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1892 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/engine/common/common.c b/engine/common/common.c index dd3a80f35..3c09c1a0b 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -686,8 +686,6 @@ int sizeofcoord=2; int sizeofangle=1; float MSG_FromCoord(coorddata c, int bytes) { - #pragma warning(disable:4701) - switch(bytes) { case 2: //encode 1/8th precision, giving -4096 to 4096 map sizes @@ -1145,9 +1143,7 @@ char *MSG_ReadStringLine (void) float MSG_ReadCoord (void) { - #pragma warning(disable:4701) - - coorddata c; + static coorddata c; //static to suppress warning about c MSG_ReadData(&c, sizeofcoord); return MSG_FromCoord(c, sizeofcoord); }