Skip to content
Snippets Groups Projects
Verified Commit 8c2ea36c authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: improved rumble comparison

parent 344bef50
No related branches found
No related tags found
No related merge requests found
Pipeline #2927 passed
......@@ -808,7 +808,7 @@ pub static MBC5: Mbc = Mbc {
if rom.has_rumble() {
ram_bank = value & 0x07;
let rumble = (value & 0x08) == 0x08;
if (rom.rumble_active && !rumble) || (!rom.rumble_active && rumble) {
if rom.rumble_active != rumble {
rom.rumble_active = rumble;
rom.trigger_rumble();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment