# HG changeset patch # User frosch # Date 2010-02-17 21:07:32 # Node ID 2f2a08552acc9ad8b0b674428537a3fce1e23f78 # Parent 55a2c250e3a2ea8de24e2d808294c6b791928987 (svn r19153) -Fix [FS#pm](r19056): PBS reservation was drawn incorrectly for depots. diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -2203,8 +2203,8 @@ static void DrawTile_Track(TileInfo *ti) /* 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; } }