mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-13 04:27:59 +01:00
fix setting level number in command line
This commit is contained in:
parent
ca94680674
commit
042d29aff4
1 changed files with 1 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue