From: Holger Schemel Date: Sat, 30 Nov 2024 10:23:10 +0000 (+0100) Subject: fixed calculating tape engine version sub-types X-Git-Tag: 4.4.0.0-test-4~8 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f2f8212af84b5673a460561a7d641db93c1a8b20;p=rocksndiamonds.git fixed calculating tape engine version sub-types --- 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")) {