From 5ab100354889f91387042ab188a1886b49cdfebc Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 21 Oct 2005 05:28:59 +0000 Subject: [PATCH] fix a float->enum conversion error with g++ 4 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5748 d7cf8633-e32d-0410-b094-e92efae38249 --- mvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mvm_cmds.c b/mvm_cmds.c index 3924a97d..38d60b17 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -480,7 +480,7 @@ void VM_M_setserverlistmaskstring( void ) } mask->active = true; - mask->tests[field] = (serverlist_maskop_t) PRVM_G_FLOAT( OFS_PARM3 ); + mask->tests[field] = (serverlist_maskop_t)((int)PRVM_G_FLOAT( OFS_PARM3 )); } /* @@ -533,7 +533,7 @@ void VM_M_setserverlistmasknumber( void ) } mask->active = true; - mask->tests[field] = (serverlist_maskop_t) PRVM_G_FLOAT( OFS_PARM3 ); + mask->tests[field] = (serverlist_maskop_t)((int)PRVM_G_FLOAT( OFS_PARM3 )); } -- 2.39.2