summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-10 00:02:56 +0100
committerAki <please@ignore.pl>2022-03-10 00:02:56 +0100
commitd2709bc8708b72439bade20214dfd5f3482a34d2 (patch)
tree5214521f3ac1f2dcadb211f49b4ef4949f1e89cd /Stars45/Game.cpp
parente0dd50e4314a36fd99da0a7342b5ad88f449d33e (diff)
downloadstarshatter-d2709bc8708b72439bade20214dfd5f3482a34d2.zip
starshatter-d2709bc8708b72439bade20214dfd5f3482a34d2.tar.gz
starshatter-d2709bc8708b72439bade20214dfd5f3482a34d2.tar.bz2
Fixed logic error in game loop condition
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r--Stars45/Game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp
index e2364de..add37b1 100644
--- a/Stars45/Game.cpp
+++ b/Stars45/Game.cpp
@@ -736,7 +736,7 @@ Game::Run()
// Polling messages from event queue until quit
clock.Set();
- while (status < EXIT || Panic::Panicked()) {
+ while (status < EXIT && !Panic::Panicked()) {
if (PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT)
break;