From d2078fafb9edd75fd5aa918470e96d72daa41b01 Mon Sep 17 00:00:00 2001 From: Dries Harnie Date: Sun, 12 Aug 2012 16:18:39 +0200 Subject: [PATCH] EMI: Don't draw shadow actors if they are attached --- engines/grim/actor.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/engines/grim/actor.cpp b/engines/grim/actor.cpp index 14b76271b8d..2749bf83f81 100644 --- a/engines/grim/actor.cpp +++ b/engines/grim/actor.cpp @@ -1310,10 +1310,12 @@ void Actor::draw() { g_driver->setShadow(NULL); } - // normal draw actor - g_driver->startActorDraw(absPos, _scale, _yaw, _pitch, _roll, _inOverworld, _alphaMode != AlphaOff ? _globalAlpha : 1.f); - costume->draw(); - g_driver->finishActorDraw(); + if (!isAttached() || !costume->getFilename().equals("fx/dumbshadow.cos")) { + // normal draw actor + g_driver->startActorDraw(absPos, _scale, _yaw, _pitch, _roll, _inOverworld, _alphaMode != AlphaOff ? _globalAlpha : 1.f); + costume->draw(); + g_driver->finishActorDraw(); + } } if (_mustPlaceText) {