summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2016-04-22 13:23:31 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2016-04-22 13:41:42 +0200
commitc8139e9abc93bec7a0bee5c1057beab9175f2a16 (patch)
tree2cc556edd12c64902adb690387de4b96119652c7
parentf5998858b352a633133c04fe5d2b7127c0168da6 (diff)
downloadmanager-c8139e9abc93bec7a0bee5c1057beab9175f2a16.tar.gz
manager-c8139e9abc93bec7a0bee5c1057beab9175f2a16.zip
Only change state to loading when the current state was lobby
(Downhill Race caused the state to change to loading because of a Log("Los geht's!"))
-rw-r--r--src/crsm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index ee307d8..a4618a8 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -211,7 +211,7 @@ void CRSM::readServerOutput()
}
static QRegExp lobbyStartExp(R"((?:Los geht's!|Action go!)\s*)");
- if(lobbyStartExp.exactMatch(what))
+ if(lobbyStartExp.exactMatch(what) && Session.State == CRSMSession::Lobby)
{
Session.State = CRSMSession::Loading;
ircSetIngameChannelTopic();