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/pickup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pickup.c') diff --git a/src/pickup.c b/src/pickup.c index 91e44b2..7036891 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -136,7 +136,7 @@ void pickup_wait_update(Entity *e) if (e->counter-- == 0) { e->update = pickup_in_update; - sound_queue_efx(EFX_WARP); + sound_play_efx(EFX_WARP); } } @@ -174,7 +174,7 @@ void pickup_update(Entity *e) if (e->counter++ == MAX_TTL) { effect_out_init(e); - sound_queue_efx(EFX_WARP); + sound_play_efx(EFX_WARP); return; } @@ -208,6 +208,6 @@ void pickup_update(Entity *e) break; } e->used = 0; - sound_queue_efx(EFX_PICKUP); + sound_play_efx(EFX_PICKUP); } } -- cgit v1.2.3