CorsixTH/CorsixTH — pull request #377 by phillipp (2014-11-11 18:59:22+00:00)
Title: Patient queue fixes plus savegame workaround

This pull request consists of 3 seperate commits. I split it up to preserve history (git blame) for every problem/piece of code. I must admit that I'm not content with squashing into one commit, because it will lose the history of the code lines.

The workaround deserves special focus on code review:
I found that afterLoad is not enough because it is only executed once and verifying that the workaround is required takes more than one tick. I would agree, that a counter that checks if the workaround has been checked a few times and could be skipped would be possible, but that would add more code.
I think the performance penalty is not worth it but feel free to profile the code and share your benchmarks.

Hit me hard with your code review :bomb:

@MarkL1961 Could you test it, please?