added visible playfield size to tape structure (not used yet)
[rocksndiamonds.git] / src / game.c
index cb107f0e8e7aa0803b5240eab1acdfd89fe1597b..768ba2e181da6890c0e58287750b3ae09dbcbca7 100644 (file)
@@ -3576,11 +3576,15 @@ void InitGame(void)
   InitGameEngine();
   InitGameControlValues();
 
-  // initialize tape actions from game when recording tape
   if (tape.recording)
   {
+    // initialize tape actions from game when recording tape
     tape.use_key_actions   = game.use_key_actions;
     tape.use_mouse_actions = game.use_mouse_actions;
+
+    // initialize visible playfield size when recording tape (for team mode)
+    tape.scr_fieldx = SCR_FIELDX;
+    tape.scr_fieldy = SCR_FIELDY;
   }
 
   // don't play tapes over network