summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-04 21:53:36 +0000
committersmatz <smatz@openttd.org>2008-05-04 21:53:36 +0000
commit297f99e100bcede36d54b8f833756c73d70fd4a0 (patch)
tree741c48c433316b11af1a790772deb3a4078fe47c /src/newgrf.cpp
parent0b8b5d1f3b5f45374d1e43390777b2de51fb7728 (diff)
downloadopenttd-297f99e100bcede36d54b8f833756c73d70fd4a0.tar.xz
(svn r12944) -Codechange: use rev.h instead of externs at many places
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 82746ad21..f6a344ea6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -34,6 +34,7 @@
#include "newgrf_townname.h"
#include "newgrf_industries.h"
#include "gfxinit.h"
+#include "rev.h"
#include "fios.h"
#include "rail.h"
#include "strings_func.h"
@@ -3643,11 +3644,9 @@ bool GetGlobalVariable(byte param, uint32 *value)
*value = _opt.landscape == LT_ARCTIC ? GetSnowLine() : 0xFF;
return true;
- case 0x21: { // OpenTTD version
- extern uint32 _openttd_newgrf_version;
+ case 0x21: // OpenTTD version
*value = _openttd_newgrf_version;
return true;
- }
case 0x22: // difficulty level
*value = _opt.diff_level;