Describe the bug
Related to issue #25, when a scenario ends in-game, the Scenario has Ended event might not fire properly and the environment might not know that the scenario has ended and get stuck.
To Reproduce
Steps to reproduce the behavior:
Load the scen/steam_demo_restart.scen scenario.
Disable the Scenario has Ended event.
Let the scenario run.
See error
Expected behavior
We need to know when the Scenario has Ended event has not fired properly and handle it accordingly. Currently, we can also use the CMOEnv::end_game() function to end the game.
Describe the bug Related to issue #25, when a scenario ends in-game, the
Scenario has Ended
event might not fire properly and the environment might not know that the scenario has ended and get stuck.To Reproduce Steps to reproduce the behavior:
scen/steam_demo_restart.scen
scenario.Scenario has Ended
event.Expected behavior We need to know when the
Scenario has Ended
event has not fired properly and handle it accordingly. Currently, we can also use theCMOEnv::end_game()
function to end the game.