rnd-20040314-1-src
authorHolger Schemel <info@artsoft.org>
Sun, 14 Mar 2004 22:06:45 +0000 (23:06 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:46:17 +0000 (10:46 +0200)
src/conftime.h
src/game.c
src/tape.c

index 5189ebefbff8cee433f0afb1ded16f8288680522..7438bad03c3f1ff2b882b149c37e6666a81d701b 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2004-03-13 16:17]"
+#define COMPILE_DATE_STRING "[2004-03-14 22:31]"
index 88e92d03306c61a84a87db86f28b714c79b10354..0e84aa846bfd0dcc5fb94defd73f147919012f1b 100644 (file)
@@ -7576,6 +7576,15 @@ void GameActions()
   recorded_player_action = (tape.playing ? TapePlayAction() : NULL);
 
 #if 1
+  if (recorded_player_action == NULL && tape.pausing)
+    return;
+#endif
+
+#if 0
+  printf("::: %d\n", stored_player[0].action);
+#endif
+
+#if 0
   if (recorded_player_action != NULL)
     for (i = 0; i < MAX_PLAYERS; i++)
       stored_player[i].action = recorded_player_action[i];
@@ -7597,6 +7606,12 @@ void GameActions()
   if (!options.network && !setup.team_mode)
     local_player->effective_action = summarized_player_action;
 
+#if 1
+  if (recorded_player_action != NULL)
+    for (i = 0; i < MAX_PLAYERS; i++)
+      stored_player[i].effective_action = recorded_player_action[i];
+#endif
+
 #if 1
   for (i = 0; i < MAX_PLAYERS; i++)
   {
@@ -7632,6 +7647,11 @@ void GameActions()
       actual_player_action = stored_player[i].programmed_action;
 #endif
 
+#if 0
+    if (stored_player[i].programmed_action)
+      printf("::: %d\n", stored_player[i].programmed_action);
+#endif
+
     if (recorded_player_action)
     {
 #if 0
index 36748a7e4766a485734b38593d6e09dac47c1cd2..642ce5c399d814bac1b65a967fe35aa09b306390 100644 (file)
@@ -434,6 +434,10 @@ void TapeRecordAction(byte action[MAX_PLAYERS])
     return;
   }
 
+#if 0
+  printf("::: %05d: recording action: %d\n", FrameCounter, action[0]);
+#endif
+
   if (tape.pos[tape.counter].delay > 0)                /* already stored action */
   {
     boolean changed_events = FALSE;
@@ -453,6 +457,11 @@ void TapeRecordAction(byte action[MAX_PLAYERS])
 
   if (tape.pos[tape.counter].delay == 0)       /* store new action */
   {
+
+#if 0
+    printf("::: %05d: new sequence\n", FrameCounter);
+#endif
+
     for (i = 0; i < MAX_PLAYERS; i++)
       tape.pos[tape.counter].action[i] = action[i];
 
@@ -491,7 +500,9 @@ void TapeTogglePause(boolean toggle_manual)
       tape.quick_resume = FALSE;
 
       TapeAppendRecording();
+#if 0
       TapeTogglePause(toggle_manual);
+#endif
     }
   }
 }
@@ -586,11 +597,22 @@ byte *TapePlayAction()
     tape.delay_played = 0;
   }
 
+#if 0
+  printf("::: %05d: replaying action: %d\n", FrameCounter, action[0]);
+#endif
+
   return action;
 }
 
 void TapeStop()
 {
+#if 0
+  if (tape.recording)
+    printf("::: stopped recording: %d\n", FrameCounter);
+  else if (tape.playing)
+    printf("::: stopped playing:   %d\n\n", FrameCounter);
+#endif
+
   TapeStopRecording();
   TapeStopPlaying();