diff options
author | rubidium <rubidium@openttd.org> | 2007-05-31 15:15:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-31 15:15:00 +0000 |
commit | 253aa1b0b03aed312581de35d7e35bc17b96190f (patch) | |
tree | 3d9486f1a21425d7003ab07134c9311a3d77cb1a /src/newgrf.cpp | |
parent | a02417645e4cf1563b01819ac92ab507277b5b56 (diff) | |
download | openttd-253aa1b0b03aed312581de35d7e35bc17b96190f.tar.xz |
(svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 0ba3aa846..cc44682d0 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2897,6 +2897,14 @@ static void GraphicsNew(byte *buf, int len) replace = SPR_CANALS_BASE + 5; break; + case 0x09: // One way graphics + if (num != 6) { + grfmsg(1, "GraphicsNew: One way road graphics sprite count must be 6, skipping"); + return; + } + replace = SPR_ONEWAY_BASE; + break; + case 0x0A: // 2CC colour maps if (num != 256) { grfmsg(1, "GraphicsNew: 2CC colour maps sprite count must be 256, skipping"); |