Increase verbosity of chosen track assert in TrainController
This commit is contained in:
@@ -4057,7 +4057,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
|
||||
/* Currently the locomotive is active. Determine which one of the
|
||||
* available tracks to choose */
|
||||
chosen_track = TrackToTrackBits(ChooseTrainTrack(v, gp.new_tile, enterdir, bits, false, nullptr, true));
|
||||
assert(chosen_track & (bits | GetReservedTrackbits(gp.new_tile)));
|
||||
assert_msg_tile(chosen_track & (bits | GetReservedTrackbits(gp.new_tile)), gp.new_tile, "0x%X, 0x%X, 0x%X", chosen_track, bits, GetReservedTrackbits(gp.new_tile));
|
||||
|
||||
if (v->force_proceed != TFP_NONE && IsPlainRailTile(gp.new_tile) && HasSignals(gp.new_tile)) {
|
||||
/* For each signal we find decrease the counter by one.
|
||||
|
Reference in New Issue
Block a user