changeset 241 | e6e62a5e7f52 |
parent 222 | b88456001397 |
child 337 | cbe0c766c947 |
240:f1efbac04112 | 241:e6e62a5e7f52 |
---|---|
1045 |
1045 |
1046 if (b&4) { |
1046 if (b&4) { |
1047 r *= 0x10001; |
1047 r *= 0x10001; |
1048 } |
1048 } |
1049 return r; |
1049 return r; |
1050 } else if ((b&0xF0) == 0x20) { |
|
1051 /* Depot */ |
|
1052 /* We reverse the dir because it points out of the |
|
1053 * exit, and we want to get in. Maybe we should return |
|
1054 * both dirs here? */ |
|
1055 byte dir = _reverse_dir[b&3]; |
|
1056 return 1 << _dir_to_straight_trackdir[dir]; |
|
1057 } |
1050 } |
1058 } |
1051 } |
1059 return 0; |
1052 return 0; |
1060 } |
1053 } |
1061 |
1054 |