From b089f084af7cc2263b3ef18f197249e7ff543fd1 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Thu, 1 Sep 2011 01:41:01 +0200 Subject: DREAMWEB: Cleaning in 'doshake' --- engines/dreamweb/vgagrafx.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/dreamweb') 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, -- cgit v1.2.3