From 778195bab281c8ca0f6e6c9242862ae717fb817d Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Fri, 1 Nov 2024 23:39:38 +0100 Subject: [PATCH] Rename MAX_NUM_UNITS to MAX_NUM_UNIT_TYPES Clear confusion arising from the old name. Reported by blabber on Discord. --- common/fc_types.h | 2 +- common/unittype.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/fc_types.h b/common/fc_types.h index 663a7d4975..adfbbefcfb 100644 --- a/common/fc_types.h +++ b/common/fc_types.h @@ -31,7 +31,7 @@ // e.g. unit_types. Used in the network protocol. #define MAX_NUM_ITEMS 200 #define MAX_NUM_ADVANCES 250 // Used in the network protocol. -#define MAX_NUM_UNITS 250 // Used in the network protocol. +#define MAX_NUM_UNIT_TYPES 250 // Used in the network protocol. #define MAX_NUM_BUILDINGS 200 // Used in the network protocol. #define MAX_NUM_TECH_LIST 10 // Used in the network protocol. #define MAX_NUM_UNIT_LIST 10 // Used in the network protocol. diff --git a/common/unittype.h b/common/unittype.h index 956243a09b..e7459f3d61 100644 --- a/common/unittype.h +++ b/common/unittype.h @@ -28,7 +28,7 @@ struct ai_type; * it can also be used for fixed allocations to ensure able * to hold full number of unit types. * Used in the network protocol. */ -#define U_LAST MAX_NUM_UNITS +#define U_LAST MAX_NUM_UNIT_TYPES /* The largest distance a ruleset can allow a unit to paradrop. *