diff options
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 5 |
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; |