]> git.sesse.net Git - ultimatescore/commitdiff
Fix parsing of status word.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 13 Feb 2019 19:03:55 +0000 (20:03 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 13 Feb 2019 19:03:55 +0000 (20:03 +0100)
client/mainwindow.cpp

index 3ea51a013db70c18cdbb2fe783d3af7020c7806d..228fe6b2044435d4de924645e6dc6593e524af69 100644 (file)
@@ -465,8 +465,8 @@ void MainWindow::bt6000_message_received(const string &msg, int port)
 
        if (msg.size() >= 9 && msg[0] == 'G' && msg[1] == '0' && msg[2] == '1') {
                // G01: Game clock, period number, and number of time-outs.
-               bool clock_running = !(msg[4] & 0x02);
-//             bool klaxon = (msg[4] & 0x04);
+               bool clock_running = !(msg[3] & 0x02);
+//             bool klaxon = (msg[3] & 0x04);
                int minutes = parse_clock(msg[5], msg[6]);
                int seconds = parse_clock(msg[7], msg[8]);