Aali wrote:Nice catch; removing an order does make it go into an infinite loop if there's not atleast one load and one unload order left in the orderlist. (An order with no "no load/unload" flags is both and will not cause this)
:EDIT:
Patch updated
I tried patching and compiling OTTD with the patch you supplied (r15507) using tortoise to apply the patch and mingw for compiling, but I got this error:
C:/msys/home/Steffen/ottdsrc/cargo/src/saveload/afterload.cpp:30:24: ../routing.h: No such file or directory
make[1]: *** No rule to make target `/home/Steffen/ottdsrc/cargo/src/routing.cpp', needed by `routing.d'. Stop.
make[1]: Leaving directory `/home/Steffen/ottdsrc/cargo/objs/release'
make: *** [all] Error 2
I compiled "clean" SVN's without any problems - both newest revision and the 15507 used for applying the patch. Looking at the mingw log it seems that it keeps trying to find a file called "routing.h" but its nowhere to be found for some reason - any idea what Im doing wrong?
When applying the patch with tortoise I can see theres 3 "null" in a row on the file list - and I get 3 errors after patching (because of these I figure). Furthermore the program seems to believe theres an imaginary folder called "a" in the middle of the path so the program cant find any of the files untill I actually create that folder and move them into it - I dont think it means anything, apart from annoying me, but I figured Id list all the errors I get incase it actually does matter.
Also, after applying the patch some of the files (the ones changed I figure) get a red icon from tortoise instead of the green one - Im guessing this isnt a good thing either.
So basically - I suck at applying the patch apparently. Any input would be appreciated. =)