fix setting level number in command line

This commit is contained in:
Sebastian Krzyszkowiak 2012-09-21 14:47:14 +02:00
parent ca94680674
commit 042d29aff4

View file

@ -519,7 +519,7 @@ int main(int argc, char **argv){
while ((c = getopt (argc, argv, "l:s:")) != -1) while ((c = getopt (argc, argv, "l:s:")) != -1)
switch (c) { switch (c) {
case 'l': case 'l':
game.level.current_level = optarg[0]-'0'; game.level.input.current_level = optarg[0]-'0';
game.loadstate = GAMESTATE_LEVEL; game.loadstate = GAMESTATE_LEVEL;
break; break;
case 's': case 's':