diff options
author | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-19 20:31:46 +0100 |
---|---|---|
committer | ancarola <raffaele.ancarola@epfl.ch> | 2019-01-19 20:31:46 +0100 |
commit | ba86c8245484279ed7e78912b1ecd9ff4ac82e1e (patch) | |
tree | 7f3a04a92b862c4d145f2e79b87d524f98b54eed /test | |
parent | Test two completed successfully (diff) | |
download | flatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.tar.gz flatland-ba86c8245484279ed7e78912b1ecd9ff4ac82e1e.zip |
minor fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/main.cpp | 3 | ||||
-rwxr-xr-x | test/test | bin | 14248 -> 14656 bytes |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/main.cpp b/test/main.cpp index 5a441a7..2b16838 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,5 +1,6 @@ #include "flatland.h" #include "flatwindow.h" +#include "exceptions/forcequit.h" int count = 0; @@ -24,7 +25,7 @@ void loop(float dt) ++count; if (count == 1000) - quit_flatland(); + throw ForceQuit("1000 steps reached"); cout << "Loop number: " << count << endl; } Binary files differ |