src/roadveh_gui.cpp
changeset 5788 1fa45a4601e7
parent 5786 9bbd2d7f2a30
child 5874 2db89a640b7a
equal deleted inserted replaced
5787:49f49e4b3e3e 5788:1fa45a4601e7
     5 #include "debug.h"
     5 #include "debug.h"
     6 #include "functions.h"
     6 #include "functions.h"
     7 #include "roadveh.h"
     7 #include "roadveh.h"
     8 #include "table/sprites.h"
     8 #include "table/sprites.h"
     9 #include "table/strings.h"
     9 #include "table/strings.h"
    10 #include "map.h"
       
    11 #include "window.h"
    10 #include "window.h"
    12 #include "gui.h"
    11 #include "gui.h"
    13 #include "gfx.h"
       
    14 #include "vehicle.h"
    12 #include "vehicle.h"
    15 #include "viewport.h"
    13 #include "viewport.h"
    16 #include "station.h"
       
    17 #include "command.h"
    14 #include "command.h"
    18 #include "player.h"
       
    19 #include "engine.h"
       
    20 #include "depot.h"
    15 #include "depot.h"
    21 #include "vehicle_gui.h"
    16 #include "vehicle_gui.h"
    22 #include "newgrf_engine.h"
    17 #include "newgrf_engine.h"
    23 #include "date.h"
       
    24 
    18 
    25 void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection)
    19 void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection)
    26 {
    20 {
    27 	SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
    21 	SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v);
    28 	DrawSprite(GetRoadVehImage(v, DIR_W), pal, x + 14, y + 6);
    22 	DrawSprite(GetRoadVehImage(v, DIR_W), pal, x + 14, y + 6);