summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-27 18:51:04 +0000
committertron <tron@openttd.org>2005-09-27 18:51:04 +0000
commitff304041700c85e587babffdb99ba1c9ff399fc1 (patch)
treed804f18dd3f887e39dcfe68e8510f4ada9a171f9 /vehicle_gui.c
parent50f1a93664c09bff09c0c5e06d73f515ecf90733 (diff)
downloadopenttd-ff304041700c85e587babffdb99ba1c9ff399fc1.tar.xz
(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index eba37916c..93da38d3f 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -5,6 +5,7 @@
#include "debug.h"
#include "functions.h"
#include "player.h"
+#include "station.h"
#include "strings.h"
#include "table/sprites.h"
#include "table/strings.h"
@@ -101,7 +102,7 @@ void ResortVehicleLists(void)
}
}
-void BuildVehicleList(vehiclelist_d *vl, int type, int owner, int station)
+void BuildVehicleList(vehiclelist_d* vl, int type, PlayerID owner, StationID station)
{
int subtype = (type != VEH_Aircraft) ? TS_Front_Engine : 2;
int n = 0;
@@ -117,7 +118,7 @@ void BuildVehicleList(vehiclelist_d *vl, int type, int owner, int station)
DEBUG(misc, 1) ("Building vehicle list for player %d station %d...",
owner, station);
- if (station != -1) {
+ if (station != INVALID_STATION) {
const Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v->type == type && v->subtype <= subtype) {