[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/clone mainloop.c
From: |
Jimmy Salmon |
Subject: |
[Stratagus-CVS] stratagus/src/clone mainloop.c |
Date: |
Sun, 23 Nov 2003 16:26:14 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Jimmy Salmon <address@hidden> 03/11/23 16:26:14
Modified files:
src/clone : mainloop.c
Log message:
Fixed bug for missing case 1, added DebugCheck so this doesn't happen a
third time
Patches:
Index: stratagus/src/clone/mainloop.c
diff -u stratagus/src/clone/mainloop.c:1.164
stratagus/src/clone/mainloop.c:1.165
--- stratagus/src/clone/mainloop.c:1.164 Thu Nov 20 15:35:44 2003
+++ stratagus/src/clone/mainloop.c Sun Nov 23 16:26:14 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: mainloop.c,v 1.164 2003/11/20 20:35:44 n0body Exp $
+// $Id: mainloop.c,v 1.165 2003/11/23 21:26:14 jsalmon3 Exp $
//@{
@@ -36,8 +36,8 @@
#include <string.h>
#include <stdio.h>
-#if defined(DEBUG) && defined(HIERARCHIC_PATHFINDER)
#include <stdlib.h>
+#if defined(DEBUG) && defined(HIERARCHIC_PATHFINDER)
#include <setjmp.h>
#endif
@@ -833,7 +833,8 @@
// Clear scheme heap each second
// FIXME: this is too slow to call during the game
CclGarbageCollect(1);
- break;
+ break;
+ case 1:
case 2:
break;
case 3: // minimap update
@@ -851,6 +852,7 @@
default:
// FIXME : assume that NumPlayers < (CYCLES_PER_SECOND -7)
player = (GameCycle % CYCLES_PER_SECOND) - 7;
+ DebugCheck(player < 0);
if (player < NumPlayers){
PlayersEachSecond(player);
}