From 93a67bd357c09739915cd20f9edaadeb72f36154 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 13 Jun 2020 20:07:52 -0700 Subject: [PATCH] Add Game::inspecial() It's a function marked for inline that's just a simple shorthand, because I don't want to type all of those conditionals out. --- desktop_version/src/Game.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop_version/src/Game.h b/desktop_version/src/Game.h index 9d59c380..cfc9d35d 100644 --- a/desktop_version/src/Game.h +++ b/desktop_version/src/Game.h @@ -393,6 +393,11 @@ public: #endif int gametimer; + + bool inline inspecial() + { + return inintermission || insecretlab || intimetrial || nodeathmode; + } }; extern Game game;