From 2e93ca9409585c38266366abf2700779f1a9a1f1 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 27 May 2020 19:35:36 +0100 Subject: [PATCH] Increase verbosity of chosen track assert in TrainController --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index dd46e96979..9023df76ae 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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.