r704 - trunk/game
lordhavoc at icculus.org
lordhavoc at icculus.org
Fri May 5 15:08:10 EDT 2006
Author: lordhavoc
Date: 2006-05-05 15:08:10 -0400 (Fri, 05 May 2006)
New Revision: 704
Modified:
trunk/game/g_entity.c
Log:
fix for previous patch (oops, I named a variable bestfound but forgot to
edit two foundbest references)
Modified: trunk/game/g_entity.c
===================================================================
--- trunk/game/g_entity.c 2006-05-05 16:23:34 UTC (rev 703)
+++ trunk/game/g_entity.c 2006-05-05 19:08:10 UTC (rev 704)
@@ -49,12 +49,12 @@
bestindex = G.allocentity++;
break;
}
- else if (!foundbest || (entity->freetime < tbest))
+ else if (!bestfound || (entity->freetime < tbest))
{
// found a free slot that hasn't timed out yet, keep track of
// which one is oldest incase we can't find one
// (this is a dangerous situation but it's even worse to fail)
- foundbest = true;
+ bestfound = true;
bestindex = G.allocentity;
tbest = entity->freetime;
}
More information about the neither-commits
mailing list