diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 22:35:16 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 22:35:16 +0100 |
commit | 8871729a65615df0eab213bbbf942abe75771704 (patch) | |
tree | 34a4ab0f412c34383799e14816d1dfe288705085 /src/pickup.c | |
parent | 5ae0b6490f5fd138f4cbf5c084680bb03b2fff05 (diff) | |
download | gold-mine-run-8871729a65615df0eab213bbbf942abe75771704.tar.gz gold-mine-run-8871729a65615df0eab213bbbf942abe75771704.zip |
Avoid drawing the whole screen on each frame
This allows supporting 386DX "just about" (there will be flickering).
Diffstat (limited to 'src/pickup.c')
-rw-r--r-- | src/pickup.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |