From 935a6b06a7419fe3ac9f41e9b70af54c6ef139d7 Mon Sep 17 00:00:00 2001 From: black Date: Mon, 13 Dec 2004 16:51:06 +0000 Subject: [PATCH] -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 --- prvm_edict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.39.2