Changeset - r27255:c46de0f7d511
[Not reviewed]
master
0 1 0
Peter Nelson - 14 months ago 2023-04-17 21:35:58
peter1138@openttd.org
Feature: Remove limit of objects per NewGRF.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/object_type.h
Show inline comments
 
@@ -19,10 +19,9 @@ static const ObjectType OBJECT_STATUE   
 
static const ObjectType OBJECT_OWNED_LAND   =   3;    ///< Owned land 'flag'
 
static const ObjectType OBJECT_HQ           =   4;    ///< HeadQuarter of a player
 

	
 
static const ObjectType NUM_OBJECTS_PER_GRF = 255;    ///< Number of supported objects per NewGRF; limited to 255 to allow extending Action3 with an extended byte later on.
 

	
 
static const ObjectType NEW_OBJECT_OFFSET   =   5;    ///< Offset for new objects
 
static const ObjectType NUM_OBJECTS         = 64000;  ///< Number of supported objects overall
 
static const ObjectType NUM_OBJECTS_PER_GRF = NUM_OBJECTS; ///< Number of supported objects per NewGRF
 
static const ObjectType INVALID_OBJECT_TYPE = 0xFFFF; ///< An invalid object
 

	
 
/** Unique identifier for an object. */
0 comments (0 inline, 0 general)