equal
deleted
inserted
replaced
17 #include "gfx.h" |
17 #include "gfx.h" |
18 #include "town.h" |
18 #include "town.h" |
19 #include "signs.h" |
19 #include "signs.h" |
20 #include "waypoint.h" |
20 #include "waypoint.h" |
21 #include "variables.h" |
21 #include "variables.h" |
|
22 #include "train.h" |
22 |
23 |
23 #define VIEWPORT_DRAW_MEM (65536 * 2) |
24 #define VIEWPORT_DRAW_MEM (65536 * 2) |
24 |
25 |
25 static bool _added_tile_sprite; |
26 static bool _added_tile_sprite; |
26 static bool _offset_ground_sprites; |
27 static bool _offset_ground_sprites; |
1698 } |
1699 } |
1699 |
1700 |
1700 |
1701 |
1701 static void SafeShowTrainViewWindow(const Vehicle* v) |
1702 static void SafeShowTrainViewWindow(const Vehicle* v) |
1702 { |
1703 { |
1703 if (v->subtype != TS_Front_Engine) v = GetFirstVehicleInChain(v); |
1704 if (!IsFrontEngine(v)) v = GetFirstVehicleInChain(v); |
1704 ShowTrainViewWindow(v); |
1705 ShowTrainViewWindow(v); |
1705 } |
1706 } |
1706 |
1707 |
1707 static void Nop(const Vehicle* v) {} |
1708 static void Nop(const Vehicle* v) {} |
1708 |
1709 |