Merge branch 'infrastructure_sharing-sx' into jgrpp

# Conflicts:
#	src/settings_type.h
#	src/table/settings.ini
This commit is contained in:
Jonathan G Rennison
2016-02-25 22:31:36 +00:00
6 changed files with 20 additions and 0 deletions

View File

@@ -3298,6 +3298,11 @@ static Vehicle *FindTrainCollideEnum(Vehicle *v, void *data)
/* not a train or in depot */
if (v->type != VEH_TRAIN || Train::From(v)->track == TRACK_BIT_DEPOT) return NULL;
if (_settings_game.vehicle.no_train_crash_other_company) {
/* do not crash into trains of another company. */
if (v->owner != tcc->v->owner) return NULL;
}
/* get first vehicle now to make most usual checks faster */
Train *coll = Train::From(v)->First();