summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
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
commit3343586c84efde39ea15b681760a432546315053 (patch)
tree0fc133bb9beaeff73bab69a243205edfd3280db6 /src/newgrf.cpp
parentb88882c2fa46e65b399b73d4de647217d1ae8965 (diff)
downloadopenttd-3343586c84efde39ea15b681760a432546315053.tar.xz
(svn r12449) -Feature[newGRF]: Add support for var A2/22 for action 7/9/D: Diificulty level
Diffstat (limited to 'src/newgrf.cpp')
-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;
}
}