diff options
author | Willem Jan Palenstijn | 2011-11-19 18:35:47 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-19 18:47:54 +0100 |
commit | 049a0c25d73114f76bb2107c6211dd01306df131 (patch) | |
tree | 2628565dd33d5797c536d2051a0c30a1b41276ed /engines | |
parent | 754f63a22d72f1d8111f7fe48dc31694cb47f243 (diff) | |
download | scummvm-rg350-049a0c25d73114f76bb2107c6211dd01306df131.tar.gz scummvm-rg350-049a0c25d73114f76bb2107c6211dd01306df131.tar.bz2 scummvm-rg350-049a0c25d73114f76bb2107c6211dd01306df131.zip |
DREAMWEB: Minor cleanup
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 1288cc47c0..7e2e185818 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1883,8 +1883,9 @@ void DreamGenContext::hangonp(uint16 count) { showpointer(); vsync(); dumppointer(); - uint32 counter = count; // silence a signed/unsigned MSVC warning below - for (uint32 i = 0; i < counter * 3; ++i) { + + count *= 3; + for (uint16 i = 0; i < count; ++i) { delpointer(); readmouse(); animpointer(); @@ -1893,9 +1894,7 @@ void DreamGenContext::hangonp(uint16 count) { dumppointer(); if (data.byte(kQuitrequested)) break; - if (data.word(kMousebutton) == 0) - continue; - if (data.word(kMousebutton) != data.word(kOldbutton)) + if (data.word(kMousebutton) != 0 && data.word(kMousebutton) != data.word(kOldbutton)) break; } |