Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv618/src

Modified Files:
	data.c local.c main.c map.c 
Log Message:
Fixed cambot playback with double buffering.
Added cambot info to manual.

Index: local.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- local.c	25 May 2006 09:24:46 -0000	1.32
+++ local.c	26 May 2006 06:58:19 -0000	1.33
@@ -2527,9 +2527,13 @@
    Draw out the 'tactical' map
 */
 {
+#ifdef RECORDGAME
+    if (doubleBuffering && !inplayback)
+        W_Win2Mem (localSDB);
+#else
     if (doubleBuffering)
         W_Win2Mem (localSDB);
-
+#endif
     clearLocal ();
 
     /* Keep redrawing for double buffered observers who get set out of normal gameplay bounds,
@@ -2550,9 +2554,14 @@
 
     weaponUpdate = 0;
     DrawMisc ();
-
+ 
+#ifdef RECORDGAME
+    if (doubleBuffering && !inplayback)
+        W_Mem2Win (localSDB);
+#else
     if (doubleBuffering)
         W_Mem2Win (localSDB);
+#endif
 }
 
 

Index: main.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/main.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- main.c	21 May 2006 09:56:38 -0000	1.6
+++ main.c	26 May 2006 06:58:19 -0000	1.7
@@ -86,8 +86,7 @@
 {
     int usage = 0;
     int err = 0;
-    int inplayback = 0;
-	int	hideConsole = 1;
+    int	hideConsole = 1;
     char *name, *ptr;
     int i;
 

Index: map.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/map.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- map.c	22 May 2006 08:27:53 -0000	1.13
+++ map.c	26 May 2006 06:58:19 -0000	1.14
@@ -689,8 +689,13 @@
     int view = WINSIDE * SCALE / 2;
     int mvx, mvy;
 
+#ifdef RECORDGAME
+    if (doubleBuffering && !inplayback)
+        W_Win2Mem (mapSDB);
+#else
     if (doubleBuffering)
         W_Win2Mem (mapSDB);
+#endif
 
     dx = (me->p_x) / (GWIDTH / WINSIDE);
     dy = (me->p_y) / (GWIDTH / WINSIDE);
@@ -954,6 +959,11 @@
         clearlock = 1;
     }
 
+#ifdef RECORDGAME
+    if (doubleBuffering && !inplayback)
+        W_Mem2Win (mapSDB);
+#else
     if (doubleBuffering)
         W_Mem2Win (mapSDB);
+#endif
 }
\ No newline at end of file

Index: data.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/data.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- data.c	25 May 2006 08:43:57 -0000	1.28
+++ data.c	26 May 2006 06:58:19 -0000	1.29
@@ -156,6 +156,7 @@
 FILE *recordFile = NULL;        /* recorder: slurp packets
                                  * here */
 int playback = 0;
+int inplayback = 0;
 #endif
 
 FILE *logFile = NULL;           /* log messages to this file */