16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 12:49:18 +02:00

launcher tweaks

This commit is contained in:
milek7
2019-09-22 14:03:49 +02:00
parent bb408a69f3
commit 45142cb826
3 changed files with 26 additions and 14 deletions

View File

@@ -145,6 +145,11 @@ void ui::scenerylist_panel::add_replace_entry(const trainset_desc &trainset)
set += std::to_string(trainset.offset) + " ";
set += std::to_string(trainset.velocity) + "\n";
for (const auto &veh : trainset.vehicles) {
if (!veh.skin) {
ErrorLog("trainset contains invalid vehicle " + veh.name);
continue;
}
set += "node -1 0 " + veh.name + " dynamic ";
set += veh.vehicle->path.parent_path().generic_string() + " ";
set += veh.skin->skin + " ";