I'm a decent ways into a game and I've done some room_gotos via pause and upgrade screens. I just made a main menu screen that has the following code:
if (menu_committed != -1)
{
switch(menu_committed)
{
case 3: room_goto(rMain); break;
case 2: room_goto(rHowToPlay); break;
case 1: room_goto(rSettings); break;
case 0: game_end(); break;
}
}
If I put a breakpoint in the switch/case block, my code works. If I let it run through without stopping to take a break, the game crashes with no error displayed. (X://windows/Runner.exe exited with non-zero status (-1073740791))
Am I missing something? Is there a simple strategy to make sure this works? Any way to force the output to be more verbose?
IDE 2.3.0.529 Runtime 2.3.0.401
if (menu_committed != -1)
{
switch(menu_committed)
{
case 3: room_goto(rMain); break;
case 2: room_goto(rHowToPlay); break;
case 1: room_goto(rSettings); break;
case 0: game_end(); break;
}
}
If I put a breakpoint in the switch/case block, my code works. If I let it run through without stopping to take a break, the game crashes with no error displayed. (X://windows/Runner.exe exited with non-zero status (-1073740791))
Am I missing something? Is there a simple strategy to make sure this works? Any way to force the output to be more verbose?
IDE 2.3.0.529 Runtime 2.3.0.401