]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix CIA-B TOD counting
authorToni Wilen <twilen@winuae.net>
Wed, 6 Dec 2023 15:41:06 +0000 (17:41 +0200)
committerToni Wilen <twilen@winuae.net>
Wed, 6 Dec 2023 15:41:06 +0000 (17:41 +0200)
cia.cpp

diff --git a/cia.cpp b/cia.cpp
index 0981b389322764bfaf2e8a870f7ba4e2b48d9751..13860fe9c938539b56e82cdb31067124f7a983ce 100644 (file)
--- a/cia.cpp
+++ b/cia.cpp
@@ -1095,7 +1095,7 @@ static void CIA_tod_check(int num)
        struct CIA *c = &cia[num];
 
        CIA_tod_event_check(num);
-       if (!c->todon || c->tod_event_state > 1 || c->tod_offset < 0)
+       if (!c->todon || c->tod_event_state != 1 || c->tod_offset < 0)
                return;
        int hpos = current_hpos();
        hpos -= c->tod_offset;