From: Holger Schemel Date: Fri, 17 Feb 2017 22:05:25 +0000 (+0100) Subject: fixed macros for level file version handling for Mirror Magic game engine X-Git-Tag: 4.1.0.0~223 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=2864d9e4d3c1e3a42c4beb36b1cd23e98db7f1cd fixed macros for level file version handling for Mirror Magic game engine --- diff --git a/src/game_mm/mm_main.h b/src/game_mm/mm_main.h index 98950edc..dc952386 100644 --- a/src/game_mm/mm_main.h +++ b/src/game_mm/mm_main.h @@ -1079,10 +1079,10 @@ extern int num_element_info; #define MSDOS_POINTER_FILENAME "mouse.pcx" /* functions for version handling */ -#define MM_VERSION_IDENT(x,y,z) ((x) * 10000 + (y) * 100 + (z)) -#define MM_VERSION_MAJOR(x) ((x) / 10000) -#define MM_VERSION_MINOR(x) (((x) % 10000) / 100) -#define MM_VERSION_PATCH(x) ((x) % 100) +#define MM_VERSION_IDENT(x,y,z) VERSION_IDENT(x,y,z,0) +#define MM_VERSION_MAJOR(x) VERSION_MAJOR(x) +#define MM_VERSION_MINOR(x) VERSION_MINOR(x) +#define MM_VERSION_PATCH(x) VERSION_PATCH(x) /* file version numbers for resource files (levels, score, setup, etc.) ** currently supported/known file version numbers: