diff options
author | rubidium <rubidium@openttd.org> | 2007-10-16 21:15:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-16 21:15:34 +0000 |
commit | 406c22d7e3e52e5fc6fd837dbad857b9dede97fc (patch) | |
tree | 1ba1bd1507e121a70b4a1930721a37b89ed87c98 /src/openttd.h | |
parent | c0e5ca11dcca0ece6813c904886b1b78fb9399ce (diff) | |
download | openttd-406c22d7e3e52e5fc6fd837dbad857b9dede97fc.tar.xz |
(svn r11279) -Codechange: use a typedeffed type for all magic with GameDifficulty instead on relying ints to always be 32 bits, which they are not.
Diffstat (limited to 'src/openttd.h')
-rw-r--r-- | src/openttd.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/src/openttd.h b/src/openttd.h index e103921e8..5514c2165 100644 --- a/src/openttd.h +++ b/src/openttd.h @@ -280,25 +280,27 @@ struct Prices { #define GAME_DIFFICULTY_NUM 18 +/** Specific type for Game Difficulty to ease changing the type */ +typedef uint16 GDType; struct GameDifficulty { - int max_no_competitors; - int competitor_start_time; - int number_towns; - int number_industries; - int max_loan; - int initial_interest; - int vehicle_costs; - int competitor_speed; - int competitor_intelligence; // no longer in use - int vehicle_breakdowns; - int subsidy_multiplier; - int construction_cost; - int terrain_type; - int quantity_sea_lakes; - int economy; - int line_reverse_mode; - int disasters; - int town_council_tolerance; // minimum required town ratings to be allowed to demolish stuff + GDType max_no_competitors; + GDType competitor_start_time; + GDType number_towns; + GDType number_industries; + GDType max_loan; + GDType initial_interest; + GDType vehicle_costs; + GDType competitor_speed; + GDType competitor_intelligence; // no longer in use + GDType vehicle_breakdowns; + GDType subsidy_multiplier; + GDType construction_cost; + GDType terrain_type; + GDType quantity_sea_lakes; + GDType economy; + GDType line_reverse_mode; + GDType disasters; + GDType town_council_tolerance; // minimum required town ratings to be allowed to demolish stuff }; enum { |