(svn r12944) -Codechange: use rev.h instead of externs at many places

This commit is contained in:
smatz
2008-05-04 21:53:36 +00:00
parent 0b8b5d1f3b
commit 297f99e100
19 changed files with 37 additions and 29 deletions

View File

@@ -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;