From: black Date: Mon, 13 Dec 2004 16:51:06 +0000 (+0000) Subject: -Fixed another bug introduced by me, affecting the detection of a valid X-Git-Tag: xonotic-v0.1.0preview~5299 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=935a6b06a7419fe3ac9f41e9b70af54c6ef139d7;p=xonotic%2Fdarkplaces.git -Fixed another bug introduced by me, affecting the detection of a valid time global in the new VM. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4840 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/prvm_edict.c b/prvm_edict.c index c7d6b6b5..76b364ee 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -1480,7 +1480,7 @@ void PRVM_LoadProgs (const char * filename, int numrequiredfunc, char **required prog->self = PRVM_ED_FindGlobal("self"); - if( PRVM_ED_FindGlobal("time") && PRVM_ED_FindGlobal("time")->type == ev_float ) + if( PRVM_ED_FindGlobal("time") && PRVM_ED_FindGlobal("time")->type & ev_float ) prog->time = &PRVM_G_FLOAT(PRVM_ED_FindGlobal("time")->ofs); if(PRVM_ED_FindField ("chain"))