diff options
author | rubidium <rubidium@openttd.org> | 2007-05-30 13:33:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-30 13:33:19 +0000 |
commit | 70e6102c86b55a6b269bbe931309d9a57b65cd2e (patch) | |
tree | 203e85269cca25c61538c52013c462e47d4beb29 /src/rail.cpp | |
parent | bc41dc4966cc105937e5351a2a434363596c0e07 (diff) | |
download | openttd-70e6102c86b55a6b269bbe931309d9a57b65cd2e.tar.xz |
(svn r9988) -Codechange: remove the last direct map accesses, except the ones needed for the savegame saving/loading mechanisms.
Diffstat (limited to 'src/rail.cpp')
-rw-r--r-- | src/rail.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index 86fe50393..a5f2633fd 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -13,21 +13,21 @@ /* Maps a trackdir to the bit that stores its status in the map arrays, in the * direction along with the trackdir */ extern const byte _signal_along_trackdir[] = { - 0x80, 0x80, 0x80, 0x20, 0x40, 0x10, 0, 0, - 0x40, 0x40, 0x40, 0x10, 0x80, 0x20 + 0x8, 0x8, 0x8, 0x2, 0x4, 0x1, 0, 0, + 0x4, 0x4, 0x4, 0x1, 0x8, 0x2 }; /* Maps a trackdir to the bit that stores its status in the map arrays, in the * direction against the trackdir */ extern const byte _signal_against_trackdir[] = { - 0x40, 0x40, 0x40, 0x10, 0x80, 0x20, 0, 0, - 0x80, 0x80, 0x80, 0x20, 0x40, 0x10 + 0x4, 0x4, 0x4, 0x1, 0x8, 0x2, 0, 0, + 0x8, 0x8, 0x8, 0x2, 0x4, 0x1 }; /* Maps a Track to the bits that store the status of the two signals that can * be present on the given track */ extern const byte _signal_on_track[] = { - 0xC0, 0xC0, 0xC0, 0x30, 0xC0, 0x30 + 0xC, 0xC, 0xC, 0x3, 0xC, 0x3 }; /* Maps a diagonal direction to the all trackdirs that are connected to any |