From 1408eefd80db25ea869b20f5893869d3c59ec964 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 24 May 2016 09:57:42 -0400 Subject: [PATCH] Expanded max maps per instance define * Follow up to c97be60. * Increased the max amount of maps per instance to the limit. --- src/map/instance.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/map/instance.h b/src/map/instance.h index 98c4a8fb27..7bb45c63ca 100644 --- a/src/map/instance.h +++ b/src/map/instance.h @@ -10,7 +10,7 @@ struct block_list; #define MAX_INSTANCE_DATA 300 // Essentially how many instances we can create, but instance creation is primarily decided by MAX_MAP_PER_SERVER -#define MAX_MAP_PER_INSTANCE 9 // Max number of maps per instance (Enter map is counted as one) - Supports up to 255 maps +#define MAX_MAP_PER_INSTANCE UINT8_MAX // Max number of maps per instance (Enter map is counted as one) - Supports up to 255 maps #define INSTANCE_NAME_LENGTH (60+1) @@ -83,4 +83,8 @@ void do_reload_instance(void); void do_init_instance(void); void do_final_instance(void); +#if MAX_MAP_PER_INSTANCE > UINT8_MAX + #error Too many maps per instance defined! Please adjust MAX_MAP_PER_INSTANCE to a lower value. +#endif + #endif