diff options
author | orudge <orudge@openttd.org> | 2006-03-31 16:01:59 +0000 |
---|---|---|
committer | orudge <orudge@openttd.org> | 2006-03-31 16:01:59 +0000 |
commit | ff3c61b011ad961b8b841786fbe7b8975732bfc6 (patch) | |
tree | 82b4d9cb3e5863fcd4bd59d6e381b9bb5f7759c3 /elrail.c | |
parent | d3fdba9556dd17ae89b5f7ea8b43172161e5dbb1 (diff) | |
download | openttd-ff3c61b011ad961b8b841786fbe7b8975732bfc6.tar.xz |
(svn r4204) - Get trunk compiling again on OS/2
Diffstat (limited to 'elrail.c')
-rw-r--r-- | elrail.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -123,17 +123,26 @@ static void DrawCatenaryRailway(const TileInfo *ti) TrackBits trackconfig[TS_END]; bool isflat[TS_END]; /* Note that ti->tileh has already been adjusted for Foundations */ - uint tileh[TS_END] = {ti->tileh, 0}; + uint tileh[TS_END]; TLG tlg = GetTLG(ti->tile); byte PCPstatus = 0; byte OverridePCP = 0; - byte PPPpreferred[DIAGDIR_END] = {0xFF, 0xFF, 0xFF, 0xFF}; - byte PPPallowed[DIAGDIR_END] = {AllowedPPPonPCP[0], AllowedPPPonPCP[1], AllowedPPPonPCP[2], AllowedPPPonPCP[3]}; + byte PPPpreferred[DIAGDIR_END]; + byte PPPallowed[DIAGDIR_END]; byte PPPbuffer[DIAGDIR_END]; DiagDirection i; Track t; + tileh[0] = ti->tileh; + tileh[1] = 0; + + PPPpreferred[0] = PPPpreferred[1] = PPPpreferred[2] = PPPpreferred[3] = 0xFF; + PPPallowed[0] = AllowedPPPonPCP[0]; + PPPallowed[1] = AllowedPPPonPCP[1]; + PPPallowed[2] = AllowedPPPonPCP[2]; + PPPallowed[3] = AllowedPPPonPCP[3]; + /* Find which rail bits are present, and select the override points. We don't draw a pylon: 1) INSIDE a tunnel (we wouldn't see it anyway) |