Initial implementation of tracerestrict speed restriction feature

This commit is contained in:
Jonathan G Rennison
2019-12-05 18:34:05 +00:00
parent 030e8bf762
commit aa8aae9a62
14 changed files with 182 additions and 6 deletions

View File

@@ -3357,6 +3357,13 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeatureMissing(XSLFI_SPEED_RESTRICTION)) {
Train *t;
FOR_ALL_TRAINS(t) {
t->speed_restriction = 0;
}
}
/*
* Only keep order-backups for network clients (and when replaying).
* If we are a network server or not networking, then we just loaded a previously