src/station.cpp
branchnoai
changeset 9723 eee46cb39750
parent 9722 ebf0ece7d8f6
child 9724 b39bc69bb2f2
equal deleted inserted replaced
9722:ebf0ece7d8f6 9723:eee46cb39750
     4 
     4 
     5 #include "stdafx.h"
     5 #include "stdafx.h"
     6 #include "openttd.h"
     6 #include "openttd.h"
     7 #include "bridge_map.h"
     7 #include "bridge_map.h"
     8 #include "debug.h"
     8 #include "debug.h"
     9 #include "functions.h"
       
    10 #include "station_map.h"
     9 #include "station_map.h"
    11 #include "table/sprites.h"
    10 #include "table/sprites.h"
    12 #include "table/strings.h"
    11 #include "table/strings.h"
    13 #include "map.h"
       
    14 #include "tile.h"
       
    15 #include "station.h"
    12 #include "station.h"
    16 #include "gfx.h"
       
    17 #include "window.h"
       
    18 #include "viewport.h"
       
    19 #include "command.h"
       
    20 #include "town.h"
    13 #include "town.h"
    21 #include "vehicle.h"
       
    22 #include "news.h"
    14 #include "news.h"
    23 #include "saveload.h"
    15 #include "saveload.h"
    24 #include "economy.h"
       
    25 #include "player.h"
    16 #include "player.h"
    26 #include "airport.h"
    17 #include "airport.h"
    27 #include "sprite.h"
    18 #include "sprite.h"
    28 #include "depot.h"
    19 #include "depot.h"
    29 #include "train.h"
    20 #include "train.h"
    30 #include "water_map.h"
    21 #include "water_map.h"
    31 #include "industry_map.h"
    22 #include "industry_map.h"
    32 #include "newgrf_callbacks.h"
    23 #include "newgrf_callbacks.h"
    33 #include "newgrf_station.h"
    24 #include "newgrf_station.h"
    34 #include "yapf/yapf.h"
    25 #include "yapf/yapf.h"
    35 #include "date.h"
       
    36 #include "helpers.hpp"
       
    37 #include "cargotype.h"
    26 #include "cargotype.h"
    38 #include "roadveh.h"
    27 #include "roadveh.h"
       
    28 #include "station_gui.h"
       
    29 #include "zoom_func.h"
       
    30 #include "functions.h"
       
    31 #include "window_func.h"
       
    32 #include "date_func.h"
       
    33 #include "variables.h"
    39 
    34 
    40 Station::Station(TileIndex tile)
    35 Station::Station(TileIndex tile)
    41 {
    36 {
    42 	DEBUG(station, cDebugCtorLevel, "I+%3d", index);
    37 	DEBUG(station, cDebugCtorLevel, "I+%3d", index);
    43 
    38 
   131 }
   126 }
   132 
   127 
   133 void Station::MarkDirty() const
   128 void Station::MarkDirty() const
   134 {
   129 {
   135 	if (sign.width_1 != 0) {
   130 	if (sign.width_1 != 0) {
   136 		InvalidateWindowWidget(WC_STATION_VIEW, index, 1);
   131 		InvalidateWindowWidget(WC_STATION_VIEW, index, SVW_CAPTION);
   137 
   132 
   138 		/* We use ZOOM_LVL_MAX here, as every viewport can have an other zoom,
   133 		/* We use ZOOM_LVL_MAX here, as every viewport can have an other zoom,
   139 		 *  and there is no way for us to know which is the biggest. So make the
   134 		 *  and there is no way for us to know which is the biggest. So make the
   140 		 *  biggest area dirty, and we are safe for sure. */
   135 		 *  biggest area dirty, and we are safe for sure. */
   141 		MarkAllViewportsDirty(
   136 		MarkAllViewportsDirty(