Update to 13.2 (github source)

This commit is contained in:
dP
2023-06-10 18:03:07 +04:00
parent afd62e21e2
commit 0c29a3a5fb
89 changed files with 2143 additions and 931 deletions

View File

@@ -18,6 +18,7 @@
#include "station_map.h"
#include "order_cmd.h"
#include "group_cmd.h"
#include "vehicle_func.h"
#include "safeguards.h"
@@ -83,6 +84,9 @@ void OrderBackup::DoRestore(Vehicle *v)
InvalidateWindowClassesData(WC_STATION_LIST, 0);
}
/* Remove backed up name if it's no longer unique. */
if (!IsUniqueVehicleName(this->name)) this->name.clear();
v->CopyConsistPropertiesFrom(this);
/* Make sure orders are in range */