]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
-Fixed another bug introduced by me, affecting the detection of a valid
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Dec 2004 16:51:06 +0000 (16:51 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 13 Dec 2004 16:51:06 +0000 (16:51 +0000)
 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

index c7d6b6b519dc60e92135af06bde3b8f0cf2e2920..76b364eeddd336ae15877a4b104d456b4eb68f7c 100644 (file)
@@ -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"))