aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-12 01:57:07 +0400
committerAlyssa Milburn2011-06-15 17:34:15 +0200
commitf7b56a0d94bcf710ca52292577457a999d2a9fa8 (patch)
treeaa0dd10c8cd40878210fc783a72373d72a76e184
parent53e49d1a508e6864a67582716b9752d2edafdd55 (diff)
downloadscummvm-rg350-f7b56a0d94bcf710ca52292577457a999d2a9fa8.tar.gz
scummvm-rg350-f7b56a0d94bcf710ca52292577457a999d2a9fa8.tar.bz2
scummvm-rg350-f7b56a0d94bcf710ca52292577457a999d2a9fa8.zip
DREAMWEB: fixed OF register handling once again
-rw-r--r--engines/dreamweb/runtime.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h
index 80ab8db384..b08d564b8e 100644
--- a/engines/dreamweb/runtime.h
+++ b/engines/dreamweb/runtime.h
@@ -177,17 +177,17 @@ struct Flags {
_z = v == 0;
}
- inline void update_o(uint8 v, uint8 old) {
- _o = (old & 0x80) != (v & 0x80);
- }
-
inline void update(uint16 v) {
_s = v & 0x8000;
_z = v == 0;
}
+ inline void update_o(uint8 v, uint8 old) {
+ _o = (old & 0x80) != (v & 0x80);
+ }
+
inline void update_o(uint16 v, uint16 old) {
- _o = (old & 0x8000) == (v & 0x8000);
+ _o = (old & 0x8000) != (v & 0x8000);
}
};