]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a bug regarding entity reuse
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 20:39:24 +0000 (20:39 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 20:39:24 +0000 (20:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11475 d7cf8633-e32d-0410-b094-e92efae38249

prvm_edict.c

index c236447ec09ddea055f52ba54262b9440f9ef88b..554ecbe715c3e55368b2742125808e1a79e79e49 100644 (file)
@@ -1901,7 +1901,8 @@ void PRVM_Prog_Load(prvm_prog_t *prog, const char * filename, int numrequiredfun
                prog->error_cmd("PRVM_LoadProgs: couldn't load %s for %s", filename, prog->name);
        // TODO bounds check header fields (e.g. numstatements), they must never go behind end of file
 
-       prog->profiletime = prog->starttime = Sys_DirtyTime();
+       prog->profiletime = Sys_DirtyTime();
+       prog->starttime = realtime;
 
        Con_DPrintf("%s programs occupy %iK.\n", prog->name, (int)(filesize/1024));