From f2f8212af84b5673a460561a7d641db93c1a8b20 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 30 Nov 2024 11:23:10 +0100 Subject: [PATCH] fixed calculating tape engine version sub-types --- src/tape.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tape.c b/src/tape.c index b99e9b10..be363da0 100644 --- a/src/tape.c +++ b/src/tape.c @@ -2129,10 +2129,10 @@ static int AutoPlayTapesExt(boolean initialize) level_nr, tape_patch_info, tape.length_seconds / 60, tape.length_seconds % 60, "not suitable for version", - (tape.engine_version / 1000000) % 100, - (tape.engine_version / 10000 ) % 100, - (tape.engine_version / 100 ) % 100, - (tape.engine_version ) % 100); + VERSION_SUPER(tape.engine_version), + VERSION_MAJOR(tape.engine_version), + VERSION_MINOR(tape.engine_version), + VERSION_PATCH(tape.engine_version)); skip_patch = TRUE; } @@ -2279,10 +2279,10 @@ int AutoPlayTapesContinue(void) static boolean PatchTape(struct TapeInfo *tape, char *mode) { Print("[%d.%d.%d.%d]: ", - (tape->engine_version / 1000000) % 100, - (tape->engine_version / 10000 ) % 100, - (tape->engine_version / 100 ) % 100, - (tape->engine_version ) % 100); + VERSION_SUPER(tape->engine_version), + VERSION_MAJOR(tape->engine_version), + VERSION_MINOR(tape->engine_version), + VERSION_PATCH(tape->engine_version)); if (strEqual(mode, "info")) { -- 2.34.1