Reduce sensitivity of train overheated breakdown

This commit is contained in:
Jonathan G Rennison
2021-04-11 22:53:02 +01:00
parent 5d88030feb
commit d484c32d44
5 changed files with 22 additions and 2 deletions

View File

@@ -163,6 +163,13 @@ class NIHVehicle : public NIHelper {
seprintf(buffer, lastof(buffer), " Railtype: %u, compatible_railtypes: 0x" OTTD_PRINTFHEX64,
t->railtype, t->compatible_railtypes);
print(buffer);
if (t->vehstatus & VS_CRASHED) {
seprintf(buffer, lastof(buffer), " CRASHED: anim pos: %u", t->crash_anim_pos);
print(buffer);
} else if (t->crash_anim_pos > 0) {
seprintf(buffer, lastof(buffer), " Brake heating: %u", t->crash_anim_pos);
print(buffer);
}
if (t->lookahead != nullptr) {
print (" Look ahead:");
const TrainReservationLookAhead &l = *t->lookahead;