Skip to content

Commit

Permalink
Rename MAX_NUM_UNITS to MAX_NUM_UNIT_TYPES
Browse files Browse the repository at this point in the history
Clear confusion arising from the old name. Reported by blabber on
Discord.
  • Loading branch information
lmoureaux committed Nov 2, 2024
1 parent f795938 commit 778195b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/fc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion common/unittype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 778195b

Please sign in to comment.