From d4cd4cbc79960eca50862cfe1b3863ce39b86301 Mon Sep 17 00:00:00 2001 From: Rob Pearce Date: Tue, 4 Nov 2008 20:27:01 +0000 Subject: [PATCH] Fixed graphical glitch with kingsnail regenerating shell --- shared.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shared.c b/shared.c index 6307eff..e54cefa 100644 --- a/shared.c +++ b/shared.c @@ -1893,7 +1893,11 @@ void drawsprite(sprite_t *s) { if (pct > 1) pct = 1; shellimg = rotozoomSurfaceXY(srcimg,0, pct, pct ,0); // blit it - newarea.x = s->x - (shellimg->w/2) - 21; + if (s->dir == 1) { + newarea.x = s->x - (shellimg->w/2) - 21; + } else { + newarea.x = s->x - (shellimg->w/2) + 21; + } newarea.y = s->y - (shellimg->h/2) - 28; newarea.w = 0; newarea.h = 0;