X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fcartoons.c;h=e6b622dc94d51197069b3437e868abcca1ddf046;hb=c86db3c619ea29169974c9afaf15af012f0f0366;hp=1d17518616808a94cd6b3471c9b5986802172668;hpb=ec5f4027a019ebf435b41577ab1234849c77a059;p=rocksndiamonds.git diff --git a/src/cartoons.c b/src/cartoons.c index 1d175186..e6b622dc 100644 --- a/src/cartoons.c +++ b/src/cartoons.c @@ -583,6 +583,9 @@ void DrawGlobalAnimExt(int drawing_stage) else if (part->y > part->viewport_height - g->height) height -= (part->y - (part->viewport_height - g->height)); + if (width <= 0 || height <= 0) + continue; + dst_x += part->viewport_x; dst_y += part->viewport_y;