mamoniot / project-cybersyn

MIT License
52 stars 48 forks source link

fix combinator param changes not being applied for depots and refuelers #119

Closed jagoly closed 1 year ago

jagoly commented 1 year ago

previously, id was always nil for depots/refuelers as it was only set in the display reset block. The updates now take place as expected. Most obvious bug this fixes is when you have a train waiting in a depot, changing the network from one with no requests to one with now sends the train on its way.

There are a few small logical changes I made that I'm only 99% sure are correct:

Anyway I think I've tested this pretty well and everything seems to work, though there is the chance that the old code that is only now actually being run might have it's own bugs, so you may want to give it a once over in case there is anything else obvious that needs to be done.