Skip to content

Commit

Permalink
only update waiting trains when line conditions changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed Aug 14, 2016
1 parent b6a356d commit 2447f07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ end

on_gui_click = {
add_trains_to_update = function(line, newConditions)
if not newConditions then return end
for i, train in pairs(global.trains) do
if train and train.line and train.line == line and train.train.valid
and train.train.state == defines.train_state.wait_station and not train.opened then
Expand Down

0 comments on commit 2447f07

Please sign in to comment.