if (redraw_display)
{
RedrawPlayfield();
+
+ UpdateGameDoorValues();
DrawGameDoorValues();
}
}
tape.length_seconds = 0;
if (leveldir_current)
- setString(&tape.level_identifier, leveldir_current->identifier);
+ {
+ strncpy(tape.level_identifier, leveldir_current->identifier,
+ MAX_FILENAME_LEN);
+ tape.level_identifier[MAX_FILENAME_LEN] = '\0';
+ }
tape.level_nr = level_nr;
tape.pos[tape.counter].delay = 0;
static void CopyTape(struct TapeInfo *tape_from, struct TapeInfo *tape_to)
{
- if (tape_to->level_identifier != NULL)
- checked_free(tape_to->level_identifier);
-
*tape_to = *tape_from;
-
- tape_to->level_identifier = getStringCopy(tape_from->level_identifier);
}
static void SwapTapes(struct TapeInfo *t1, struct TapeInfo *t2)
{
"original tape",
"em_random_bug",
+ "screen_34x34",
NULL
};
{
VERSION_IDENT(0,0,0,0),
VERSION_IDENT(3,3,1,0),
+ VERSION_IDENT(0,0,0,0),
-1
};
{
VERSION_IDENT(9,9,9,9),
VERSION_IDENT(4,0,1,1),
+ VERSION_IDENT(4,2,2,0),
-1
};
{
TAPE_PROPERTY_NONE,
TAPE_PROPERTY_EM_RANDOM_BUG,
+ TAPE_PROPERTY_NONE,
-1
};
if (global.autoplay_mode == AUTOPLAY_MODE_FIX)
{
+ boolean skip_patch = FALSE;
+
if (tape.engine_version < patch_version_first[patch_nr] ||
tape.engine_version > patch_version_last[patch_nr])
{
(tape.engine_version / 100 ) % 100,
(tape.engine_version ) % 100);
+ skip_patch = TRUE;
+ }
+
+ if (strEqual(patch_name[patch_nr], "screen_34x34") &&
+ tape.num_participating_players == 1)
+ {
+ Print("Tape %03d %s[%02d:%02d]: (%s) - skipped.\n",
+ level_nr, tape_patch_info,
+ tape.length_seconds / 60, tape.length_seconds % 60,
+ "not suitable for single player tapes");
+
+ skip_patch = TRUE;
+ }
+
+ if (skip_patch)
+ {
if (patch_name[patch_nr + 1] != NULL)
{
// continue with next patch
continue;
}
- tape.property_bits |= patch_property_bit[patch_nr];
+ if (strEqual(patch_name[patch_nr], "screen_34x34"))
+ {
+ tape.scr_fieldx = SCR_FIELDX_DEFAULT * 2;
+ tape.scr_fieldy = SCR_FIELDY_DEFAULT * 2;
+ }
+ else
+ {
+ tape.property_bits |= patch_property_bit[patch_nr];
+ }
}
InitCounter();