]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_edict.c
-Fixed another bug introduced by me, affecting the detection of a valid
[xonotic/darkplaces.git] / 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"))