From 3d518d3d2c16e8b5b2a15978f967572b11aac861 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 20 Jul 2011 21:58:14 +0200 Subject: DREAMWEB: Cleaning of 'printasprite' --- engines/dreamweb/stubs.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 36fda90fb6..8eeece4edd 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1021,10 +1021,15 @@ void DreamGenContext::printasprite(const Sprite *sprite) { di = ax + data.word(kMapadx); } - ax = sprite->b15; + uint8 c; if (sprite->b29 != 0) - ah = 8; - showframe(); + c = 8; + else + c = 0; + uint8 width, height; + showframe(es, ds, di, bx, sprite->b15, c, &width, &height); + cl = width; + ch = height; bx = pop(); es = pop(); -- cgit v1.2.3