options -canvas and -W work in phase 2

This commit is contained in:
Zeno Rogue 2018-02-01 13:43:11 +01:00
parent 8e8ece7162
commit a7ee43474e
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ int arg::readCommon() {
else if(argis("-picload")) { PHASE(3); shift(); mapeditor::loadPicFile(args()); }
#endif
else if(argis("-canvas")) {
PHASE(2);
firstland = specialland = laCanvas;
shift();
if(args()[1] == 0) patterns::whichCanvas = args()[0];
@ -115,6 +116,7 @@ int arg::readCommon() {
showstartmenu = false;
}
else if(argis("-W")) {
PHASE(2);
shift();
firstland0 = firstland = specialland = readland(args()); autocheat = true;
showstartmenu = false;