Fixed graphical glitch with kingsnail regenerating shell

This commit is contained in:
Rob Pearce 2008-11-04 20:27:01 +00:00
parent 922f3d09a5
commit d4cd4cbc79
1 changed files with 5 additions and 1 deletions

View File

@ -1893,7 +1893,11 @@ void drawsprite(sprite_t *s) {
if (pct > 1) pct = 1; if (pct > 1) pct = 1;
shellimg = rotozoomSurfaceXY(srcimg,0, pct, pct ,0); shellimg = rotozoomSurfaceXY(srcimg,0, pct, pct ,0);
// blit it // 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.y = s->y - (shellimg->h/2) - 28;
newarea.w = 0; newarea.w = 0;
newarea.h = 0; newarea.h = 0;