From cafa956bf39391cf57dfb582e425be9649f6523a Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 9 Apr 2021 00:30:55 +0100 Subject: [PATCH] Reduce sizes of THEME_LOC (20->10) and ThemeStruct --- Source/gendung.h | 10 +++++----- Source/themes.h | 2 +- enums.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/gendung.h b/Source/gendung.h index 7e30f09e8..c45d1f255 100644 --- a/Source/gendung.h +++ b/Source/gendung.h @@ -31,11 +31,11 @@ struct ScrollStruct { }; struct THEME_LOC { - Sint32 x; - Sint32 y; - Sint32 ttval; - Sint32 width; - Sint32 height; + Sint16 x; + Sint16 y; + Sint16 ttval; + Sint16 width; + Sint16 height; }; struct MICROS { diff --git a/Source/themes.h b/Source/themes.h index 9e3f4a491..ba7c8a896 100644 --- a/Source/themes.h +++ b/Source/themes.h @@ -13,7 +13,7 @@ extern "C" { typedef struct ThemeStruct { theme_id ttype; - Sint32 ttval; + Sint16 ttval; } ThemeStruct; extern int numthemes; diff --git a/enums.h b/enums.h index 48fa442dc..f7b82c528 100644 --- a/enums.h +++ b/enums.h @@ -43,7 +43,7 @@ typedef enum dungeon_message { DMSG_DIABLO = 1 << 4, } dungeon_message; -typedef enum theme_id { +typedef enum theme_id : int8_t { THEME_BARREL = 0x0, THEME_SHRINE = 0x1, THEME_MONSTPIT = 0x2,