aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorBertrand Augereau2011-09-01 01:41:01 +0200
committerBertrand Augereau2011-09-01 01:43:57 +0200
commitb089f084af7cc2263b3ef18f197249e7ff543fd1 (patch)
tree7de35c0898a83234828de59e651dfb671fac383a /engines/dreamweb
parentefd8c41d35a2807ea2026f6966c3efb83de4dc65 (diff)
downloadscummvm-rg350-b089f084af7cc2263b3ef18f197249e7ff543fd1.tar.gz
scummvm-rg350-b089f084af7cc2263b3ef18f197249e7ff543fd1.tar.bz2
scummvm-rg350-b089f084af7cc2263b3ef18f197249e7ff543fd1.zip
DREAMWEB: Cleaning in 'doshake'
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/vgagrafx.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index ecc90f172a..ee05ebfc15 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -154,11 +154,10 @@ void DreamGenContext::frameoutfx(uint8 *dst, const uint8 *src, uint16 pitch, uin
void DreamGenContext::doshake() {
uint8 &counter = data.byte(kShakecounter);
- _cmp(counter, 48);
- if (flags.z())
+ if (counter == 48)
return;
- _add(counter, 1);
+ ++counter;
static const int shakeTable[] = {
0, -2, 3, -2, 0, 2, 4, -1,
1, -3, 3, 2, 0, -2, 3, -2,