Remove Cheats/ExtraCheats distinction

It is not necessary as there is no longer a need to preserve
the size/order of struct Cheats
This commit is contained in:
Jonathan G Rennison
2023-11-26 11:32:26 +00:00
parent 7d65fbd6e8
commit a3371fccc6
8 changed files with 20 additions and 38 deletions

View File

@@ -18,11 +18,6 @@ struct Cheat {
bool value; ///< tells if the bool cheat is active or not
};
/**
* WARNING! Do _not_ remove entries in Cheats struct or change the order
* of the existing ones! Would break downward compatibility.
* Only add new entries at the end of the struct!
*/
struct Cheats {
Cheat magic_bulldozer; ///< dynamite industries, objects
Cheat switch_company; ///< change to another company
@@ -33,9 +28,7 @@ struct Cheats {
Cheat setup_prod; ///< setup raw-material production in game
Cheat edit_max_hl; ///< edit the maximum heightlevel; this is a cheat because of the fact that it needs to reset NewGRF game state and doing so as a simple configuration breaks the expectation of many
Cheat station_rating; ///< Fix station ratings at 100%
};
struct ExtraCheats {
/* non-trunk cheats follow */
Cheat inflation_cost; ///< inflation cost factor
Cheat inflation_income; ///< inflation income factor
Cheat town_rating; ///< 100% town local authority rating
@@ -60,6 +53,5 @@ enum CheatNumbers {
};
extern Cheats _cheats;
extern ExtraCheats _extra_cheats;
#endif /* CHEAT_TYPE_H */