[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/network commands.c
From: |
Jimmy Salmon |
Subject: |
[Stratagus-CVS] stratagus/src/network commands.c |
Date: |
Fri, 07 Nov 2003 23:58:44 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Jimmy Salmon <address@hidden> 03/11/07 23:58:44
Modified files:
src/network : commands.c
Log message:
Fixed replay bug, need to protect ReplayLog from the gc
Patches:
Index: stratagus/src/network/commands.c
diff -u stratagus/src/network/commands.c:1.72
stratagus/src/network/commands.c:1.73
--- stratagus/src/network/commands.c:1.72 Tue Oct 28 15:20:44 2003
+++ stratagus/src/network/commands.c Fri Nov 7 23:58:43 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: commands.c,v 1.72 2003/10/28 20:20:44 n0body Exp $
+// $Id: commands.c,v 1.73 2003/11/08 04:58:43 jsalmon3 Exp $
//@{
@@ -143,7 +143,7 @@
fprintf(LogFile, "(replay-log\n");
fprintf(LogFile, " 'comment\t\"Generated by Stratagus Version "
VERSION "\"\n");
fprintf(LogFile, " 'comment\t\"Visit http://Stratagus.Org for more
information\"\n");
- fprintf(LogFile, " 'comment\t\"$Id: commands.c,v 1.72 2003/10/28
20:20:44 n0body Exp $\"\n");
+ fprintf(LogFile, " 'comment\t\"$Id: commands.c,v 1.73 2003/11/08
04:58:43 jsalmon3 Exp $\"\n");
if (NetworkFildes == (Socket)-1) {
fprintf(LogFile, " 'type\t\"%s\"\n", "single-player");
fprintf(LogFile, " 'race\t%d\n", GameSettings.Presets[0].Race);
@@ -413,6 +413,7 @@
vload(name, 0, 1);
ReplayLog = symbol_value(gh_symbol2scm("*replay_log*"), NIL);
+ CclGcProtect(&ReplayLog);
NextLogCycle = ~0UL;
if (!CommandLogDisabled) {
CommandLogDisabled = 1;
@@ -439,6 +440,7 @@
fclose(LogFile);
LogFile = NULL;
}
+ CclGcUnprotect(&ReplayLog);
}
/**
- [Stratagus-CVS] stratagus/src/network commands.c,
Jimmy Salmon <=