(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.

This commit is contained in:
rubidium
2008-05-17 20:54:18 +00:00
parent dbdfccc2da
commit 9717e1ef07
4 changed files with 4 additions and 19 deletions

View File

@@ -11,7 +11,6 @@
#include "order_type.h"
#include "station_type.h"
#include "engine_type.h"
#include "vehicle_base.h"
void DrawVehicleProfitButton(const Vehicle *v, int x, int y);
void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order);
@@ -90,21 +89,6 @@ void DrawVehicleImage(const Vehicle *v, int x, int y, VehicleID selection, int c
* For ease of use it can be called with both Vehicle pointers and VehicleIDs. */
void ChangeVehicleViewWindow(VehicleID from_index, VehicleID to_index);
static inline void ChangeVehicleViewWindow(const Vehicle *from_v, VehicleID to_index)
{
ChangeVehicleViewWindow(from_v->index, to_index);
}
static inline void ChangeVehicleViewWindow(VehicleID from_index, const Vehicle *to_v)
{
ChangeVehicleViewWindow(from_index, to_v->index);
}
static inline void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v)
{
ChangeVehicleViewWindow(from_v->index, to_v->index);
}
static inline uint GetVehicleListHeight(VehicleType type)
{
return (type == VEH_TRAIN || type == VEH_ROAD) ? 14 : 24;