Skip to content

Commit

Permalink
console: Support scene string in the scene command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Nov 28, 2024
1 parent 425c136 commit a05b62f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/console/console_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ int console_cmd_scene(game_state *gs, int argc, char **argv) {
if(strtoint(argv[1], &i) && is_scene(i)) {
game_state_set_next(gs, i);
return 0;
} else if((i = scene_get_id(argv[1])) > 0) {
game_state_set_next(gs, i);
return 0;
}
}
return 1;
Expand Down

0 comments on commit a05b62f

Please sign in to comment.