From 2864d9e4d3c1e3a42c4beb36b1cd23e98db7f1cd Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 17 Feb 2017 23:05:25 +0100 Subject: [PATCH] fixed macros for level file version handling for Mirror Magic game engine --- src/game_mm/mm_main.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 2.34.1