File diff r3122:c01e5ea095aa → r3123:3f0d39f0a427
station_cmd.c
Show inline comments
 
@@ -115,13 +115,13 @@ RoadStop* GetRoadStopByTile(TileIndex ti
 
		assert(rs->next != NULL);
 
	}
 

	
 
	return rs;
 
}
 

	
 
static uint GetNumRoadStops(const Station* st, RoadStopType type)
 
uint GetNumRoadStops(const Station* st, RoadStopType type)
 
{
 
	uint num = 0;
 
	const RoadStop *rs;
 

	
 
	assert(st != NULL);
 
	for (rs = GetPrimaryRoadStop(st, type); rs != NULL; rs = rs->next) num++;
 
@@ -1428,13 +1428,13 @@ static int32 RemoveRoadStop(Station *st,
 
		DoClearSquare(tile);
 

	
 
		/* Clear all vehicles destined for this station */
 
		for (i = 0; i != NUM_SLOTS; i++) {
 
			if (cur_stop->slot[i] != INVALID_VEHICLE) {
 
				Vehicle *v = GetVehicle(cur_stop->slot[i]);
 
				ClearSlot(v, v->u.road.slot);
 
				ClearSlot(v);
 
			}
 
		}
 

	
 
		cur_stop->used = false;
 
		if (cur_stop->prev != NULL) cur_stop->prev->next = cur_stop->next;
 
		if (cur_stop->next != NULL) cur_stop->next->prev = cur_stop->prev;