From b501247a9b6ee16eba28edaa9aba1db595db9c43 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 21 Oct 2005 05:26:35 +0000 Subject: [PATCH] fix a float->enum conversion error with g++ on big endian systems git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5747 d7cf8633-e32d-0410-b094-e92efae38249 --- mvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvm_cmds.c b/mvm_cmds.c index 09345132..3924a97d 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -654,7 +654,7 @@ void VM_M_setserverlistsort( void ) { VM_SAFEPARMCOUNT( 2, VM_M_setserverlistsort ); - serverlist_sortbyfield = (serverlist_infofield_t) PRVM_G_FLOAT( OFS_PARM0 ); + serverlist_sortbyfield = (serverlist_infofield_t)((int)PRVM_G_FLOAT( OFS_PARM0 )); serverlist_sortdescending = (qboolean) PRVM_G_FLOAT( OFS_PARM1 ); } -- 2.39.2