Changeset - r14570:2f2a08552acc
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2010-02-17 21:07:32
frosch@openttd.org
(svn r19153) -Fix [FS#pm](r19056): PBS reservation was drawn incorrectly for depots.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -2194,26 +2194,26 @@ static void DrawTile_Track(TileInfo *ti)
 
					case DIAGDIR_SW: DrawGroundSprite(overlay + RTO_X, PALETTE_CRASH); break;
 
					case DIAGDIR_SE: DrawGroundSprite(overlay + RTO_Y, PALETTE_CRASH); break;
 
					default: break;
 
				}
 
			}
 

	
 
			relocation  = GetCustomRailSprite(rti, ti->tile, RTSG_DEPOT);
 
			relocation -= SPR_RAIL_DEPOT_SE_1;
 
		} else {
 
			/* PBS debugging, draw reserved tracks darker */
 
			if (_game_mode != GM_MENU && _settings_client.gui.show_track_reservation && HasDepotReservation(ti->tile)) {
 
				switch (GetRailDepotDirection(ti->tile)) {
 
					case DIAGDIR_SW: DrawGroundSprite(rti->base_sprites.single_y, PALETTE_CRASH); break;
 
					case DIAGDIR_SE: DrawGroundSprite(rti->base_sprites.single_x, PALETTE_CRASH); break;
 
					case DIAGDIR_SW: DrawGroundSprite(rti->base_sprites.single_x, PALETTE_CRASH); break;
 
					case DIAGDIR_SE: DrawGroundSprite(rti->base_sprites.single_y, PALETTE_CRASH); break;
 
					default: break;
 
				}
 
			}
 

	
 
			relocation = rti->total_offset;
 
		}
 

	
 
		if (HasCatenaryDrawn(GetRailType(ti->tile))) DrawCatenary(ti);
 

	
 
		DrawRailTileSeq(ti, dts, TO_BUILDINGS, relocation, 0, _drawtile_track_palette);
 
	}
 
	DrawBridgeMiddle(ti);
0 comments (0 inline, 0 general)