diff options
-rw-r--r-- | src/newgrf_object.h | 5 | ||||
-rw-r--r-- | src/table/object_land.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/newgrf_object.h b/src/newgrf_object.h index 2d9fe5665..2c01b42d4 100644 --- a/src/newgrf_object.h +++ b/src/newgrf_object.h @@ -52,7 +52,10 @@ enum ObjectClassID { /** Allow incrementing of ObjectClassID variables */ DECLARE_POSTFIX_INCREMENT(ObjectClassID) -/** An object that isn't use for transport, industries or houses. */ +/** An object that isn't use for transport, industries or houses. + * @note If you change this struct, adopt the initialization of + * default objects in table/object_land.h + */ struct ObjectSpec { /* 2 because of the "normal" and "buy" sprite stacks. */ GRFFilePropsBase<2> grf_prop; ///< Properties related the the grf file diff --git a/src/table/object_land.h b/src/table/object_land.h index ed15a11bf..685178ef7 100644 --- a/src/table/object_land.h +++ b/src/table/object_land.h @@ -123,7 +123,7 @@ static const DrawTileSprites _object_hq[] = { #undef TILE_SPRITE_LINE -#define M(name, size, build_cost_multiplier, clear_cost_multiplier, height, flags) { GRFFilePropsBase<2>(), INVALID_OBJECT_CLASS, name, 0xF, size, 0, 0, build_cost_multiplier, clear_cost_multiplier, flags, {0, 0, 0, 0}, 0, height, 1, true } +#define M(name, size, build_cost_multiplier, clear_cost_multiplier, height, flags) { GRFFilePropsBase<2>(), INVALID_OBJECT_CLASS, name, 0xF, size, build_cost_multiplier, clear_cost_multiplier, 0, 0, flags, {0, 0, 0, 0}, 0, height, 1, true } /** Specification of the original object structures. */ extern const ObjectSpec _original_objects[] = { |