src/rail.cpp
branchgamebalance
changeset 9912 1ac8aac92385
parent 9910 0b2aebc8283e
child 9694 e72987579514
equal deleted inserted replaced
9911:0b8b245a2391 9912:1ac8aac92385
    11 
    11 
    12 /* XXX: Below 3 tables store duplicate data. Maybe remove some? */
    12 /* XXX: Below 3 tables store duplicate data. Maybe remove some? */
    13 /* Maps a trackdir to the bit that stores its status in the map arrays, in the
    13 /* Maps a trackdir to the bit that stores its status in the map arrays, in the
    14  * direction along with the trackdir */
    14  * direction along with the trackdir */
    15 extern const byte _signal_along_trackdir[] = {
    15 extern const byte _signal_along_trackdir[] = {
    16 	0x80, 0x80, 0x80, 0x20, 0x40, 0x10, 0, 0,
    16 	0x8, 0x8, 0x8, 0x2, 0x4, 0x1, 0, 0,
    17 	0x40, 0x40, 0x40, 0x10, 0x80, 0x20
    17 	0x4, 0x4, 0x4, 0x1, 0x8, 0x2
    18 };
    18 };
    19 
    19 
    20 /* Maps a trackdir to the bit that stores its status in the map arrays, in the
    20 /* Maps a trackdir to the bit that stores its status in the map arrays, in the
    21  * direction against the trackdir */
    21  * direction against the trackdir */
    22 extern const byte _signal_against_trackdir[] = {
    22 extern const byte _signal_against_trackdir[] = {
    23 	0x40, 0x40, 0x40, 0x10, 0x80, 0x20, 0, 0,
    23 	0x4, 0x4, 0x4, 0x1, 0x8, 0x2, 0, 0,
    24 	0x80, 0x80, 0x80, 0x20, 0x40, 0x10
    24 	0x8, 0x8, 0x8, 0x2, 0x4, 0x1
    25 };
    25 };
    26 
    26 
    27 /* Maps a Track to the bits that store the status of the two signals that can
    27 /* Maps a Track to the bits that store the status of the two signals that can
    28  * be present on the given track */
    28  * be present on the given track */
    29 extern const byte _signal_on_track[] = {
    29 extern const byte _signal_on_track[] = {
    30 	0xC0, 0xC0, 0xC0, 0x30, 0xC0, 0x30
    30 	0xC, 0xC, 0xC, 0x3, 0xC, 0x3
    31 };
    31 };
    32 
    32 
    33 /* Maps a diagonal direction to the all trackdirs that are connected to any
    33 /* Maps a diagonal direction to the all trackdirs that are connected to any
    34  * track entering in this direction (including those making 90 degree turns)
    34  * track entering in this direction (including those making 90 degree turns)
    35  */
    35  */