summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-07 12:38:43 +0000
committerfrosch <frosch@openttd.org>2013-05-07 12:38:43 +0000
commit71cfe3d474e75c25df37c3947bfaa04b917c603e (patch)
tree6e23881d0857253629bf278892fe5fb6048f272a /src
parenta8ba74843439e1ad1157db7621cbd1a5ae10e428 (diff)
downloadopenttd-71cfe3d474e75c25df37c3947bfaa04b917c603e.tar.xz
(svn r25230) -Feature: [NewGRF] Expose sprite base of foundation and shore sprites via Action D Game Variables.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 854ad165e..91220b204 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6371,6 +6371,14 @@ static uint32 GetPatchVariable(uint8 param)
case 0x14:
return MAX_TILE_HEIGHT;
+ /* Extra foundations base sprite */
+ case 0x15:
+ return SPR_SLOPES_BASE;
+
+ /* Shore base sprite */
+ case 0x16:
+ return SPR_SHORE_BASE;
+
default:
grfmsg(2, "ParamSet: Unknown Patch variable 0x%02X.", param);
return 0;