(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1

This commit is contained in:
tron
2005-09-27 18:51:04 +00:00
parent 34b5b4fcd9
commit f608232673
8 changed files with 35 additions and 31 deletions

View File

@@ -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) {