beginning to add depot logic

This commit is contained in:
Monica Moniot
2022-10-30 12:36:58 -04:00
parent 202ae86c95
commit bb596ff733
8 changed files with 101 additions and 40 deletions

View File

@@ -354,7 +354,7 @@ local function on_train_arrives_depot(map_data, train_entity)
train.manifest = nil
train.depot_name = train_entity.station.backer_name
train.status = STATUS_D
map_data.trains_available[train_entity.id] = true
map_data.trains_available[][train_entity.id] = true
else
if train.manifest then
on_failed_delivery(map_data, train)