(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "sprite.h"
|
||||
#include "depot.h"
|
||||
#include "train.h"
|
||||
#include "roadveh.h"
|
||||
#include "water_map.h"
|
||||
#include "industry_map.h"
|
||||
#include "newgrf_callbacks.h"
|
||||
@@ -2280,7 +2281,7 @@ static uint32 VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y)
|
||||
}
|
||||
} else if (v->type == VEH_ROAD) {
|
||||
if (v->u.road.state < RVSB_IN_ROAD_STOP && !IsReversingRoadTrackdir((Trackdir)v->u.road.state) && v->u.road.frame == 0) {
|
||||
if (IsRoadStop(tile)) {
|
||||
if (IsRoadStop(tile) && IsRoadVehFront(v)) {
|
||||
/* Attempt to allocate a parking bay in a road stop */
|
||||
RoadStop *rs = GetRoadStopByTile(tile, GetRoadStopType(tile));
|
||||
|
||||
|
Reference in New Issue
Block a user