From 8871729a65615df0eab213bbbf942abe75771704 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 8 Jul 2023 22:35:16 +0100 Subject: Avoid drawing the whole screen on each frame This allows supporting 386DX "just about" (there will be flickering). --- src/tmonster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tmonster.c') diff --git a/src/tmonster.c b/src/tmonster.c index 30d5714..9f3c618 100644 --- a/src/tmonster.c +++ b/src/tmonster.c @@ -34,8 +34,8 @@ static const Rect frames[2 * 4] = void tmonster_init(Entity *e) { - e->y = 16; - e->x = 32 + (rand() % 256); + e->ox = e->y = 16; + e->oy = e->x = 32 + (rand() % 256); e->dir = e->x > 160 ? DIR_LEFT : DIR_RIGHT; e->frames = (const Rect *)frames; e->update = tmonster_wait_update; -- cgit v1.2.3