summaryrefslogtreecommitdiff
path: root/src/openttd.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-13 13:36:01 +0000
committerrubidium <rubidium@openttd.org>2008-01-13 13:36:01 +0000
commit5c4150d304242d224d5974f79d5461ff3090cea3 (patch)
treeec37405dba3eeb85aaeaa7e2ed2433812d3061d6 /src/openttd.h
parentb0c34f4d6275a0dc1b8639b5529e37233240f6e2 (diff)
downloadopenttd-5c4150d304242d224d5974f79d5461ff3090cea3.tar.xz
(svn r11832) -Codechange: get rid of (quite) some VARDEFs.
Diffstat (limited to 'src/openttd.h')
-rw-r--r--src/openttd.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/openttd.h b/src/openttd.h
index 8b8f0c0a2..edc9d4339 100644
--- a/src/openttd.h
+++ b/src/openttd.h
@@ -112,31 +112,6 @@ enum {
NUM_LANDSCAPE = 4,
};
-#define GAME_DIFFICULTY_NUM 18
-
-/** Specific type for Game Difficulty to ease changing the type */
-typedef uint16 GDType;
-struct GameDifficulty {
- 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
-};
-
struct ViewportSign {
int32 left;
int32 top;
@@ -150,7 +125,7 @@ enum {
SORT_BY_NAME = 2
};
-VARDEF byte _savegame_sort_order;
+extern byte _savegame_sort_order;
enum {
MAX_SCREEN_WIDTH = 2048,
@@ -166,7 +141,7 @@ enum {
SCROLL_SAVE = 2,
SCROLL_CHAT = 4,
};
-VARDEF byte _no_scroll;
+extern byte _no_scroll;
/** To have a concurrently running thread interface with the main program, use
* the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled