From: havoc Date: Fri, 21 Oct 2005 05:28:59 +0000 (+0000) Subject: fix a float->enum conversion error with g++ 4 X-Git-Tag: xonotic-v0.1.0preview~4535 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ab100354889f91387042ab188a1886b49cdfebc;p=xonotic%2Fdarkplaces.git 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 --- 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 )); }