summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-05-24 02:54:47 +0000
committerbelugas <belugas@openttd.org>2008-05-24 02:54:47 +0000
commitfc35ad9ee9077869ab7b5a06b44327c835df3e5f (patch)
tree6e9667beb04ac4a18b43294a74456ab52a123a5a /src/settings_type.h
parent6f233b1f8f18beb1e347c943685f6086d886993e (diff)
downloadopenttd-fc35ad9ee9077869ab7b5a06b44327c835df3e5f.tar.xz
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
Initial concept : TTDPatch (moreairpots), Initial code : Pasky Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index c5a74d359..2233c856d 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -10,7 +10,27 @@
#include "town_type.h"
#include "transport_type.h"
-#define GAME_DIFFICULTY_NUM 18
+enum {
+ GAME_DIFFICULTY_AI_NUMBER,
+ GAME_DIFFICULTY_AI_STARTTIME,
+ GAME_DIFFICULTY_TOWN_NUMBER,
+ GAME_DIFFICULTY_INDUSTRIE_NUMBER,
+ GAME_DIFFICULTY_MAX_LOAN,
+ GAME_DIFFICULTY_INITIAL_INTEREST,
+ GAME_DIFFICULTY_VEHICLE_COST,
+ GAME_DIFFICULTY_AI_SPEED,
+ GAME_DIFFICULTY_AI_INTELLIGENCE, ///< no longer in use
+ GAME_DIFFICULTY_VEHICLES_BREAKDOWN,
+ GAME_DIFFICULTY_SUBSIDY_MULTIPLIER,
+ GAME_DIFFICULTY_CONSTRUCTION_COST,
+ GAME_DIFFICULTY_TYPE_TERRAIN,
+ GAME_DIFFICULTY_SEALAKE_NUMBER,
+ GAME_DIFFICULTY_ECONOMY,
+ GAME_DIFFICULTY_LINE_REVERSEMODE,
+ GAME_DIFFICULTY_DISASTERS,
+ GAME_DIFFICULTY_TOWNCOUNCIL_TOLERANCE, ///< minimum required town ratings to be allowed to demolish stuff
+ GAME_DIFFICULTY_NUM,
+};
/** Specific type for Game Difficulty to ease changing the type */
typedef uint16 GDType;
@@ -221,6 +241,8 @@ struct Patches {
bool pause_on_newgame; ///< Whether to start new games paused or not.
TownLayoutByte town_layout; ///< Select town layout
+ bool station_noise_level; ///< build new airports when the town noise level is still within accepted limits
+ uint16 town_noise_population[3]; ///< Population to base decision on noise evaluation (@see town_council_tolerance)
bool timetabling; ///< Whether to allow timetabling.
bool timetable_in_ticks; ///< Whether to show the timetable in ticks rather than days.