summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-03-27 17:06:35 +0000
committerbelugas <belugas@openttd.org>2008-03-27 17:06:35 +0000
commit7aab471a7669eb8ab62b112628cbdd09ca3164c9 (patch)
tree0fc133bb9beaeff73bab69a243205edfd3280db6 /src
parentfbb3a0271874aaeebec1bfd05c8307606794fd56 (diff)
downloadopenttd-7aab471a7669eb8ab62b112628cbdd09ca3164c9.tar.xz
(svn r12449) -Feature[newGRF]: Add support for var A2/22 for action 7/9/D: Diificulty level
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 37c1629e9..8ee2e059b 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3555,6 +3555,10 @@ bool GetGlobalVariable(byte param, uint32 *value)
return true;
}
+ case 0x22: // difficulty level
+ *value = _opt.diff_level;
+ return true;
+
default: return false;
}
}