aboutsummaryrefslogtreecommitdiff
path: root/src/pickup.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-08 22:35:16 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-08 22:35:16 +0100
commit8871729a65615df0eab213bbbf942abe75771704 (patch)
tree34a4ab0f412c34383799e14816d1dfe288705085 /src/pickup.c
parent5ae0b6490f5fd138f4cbf5c084680bb03b2fff05 (diff)
downloadgold-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.c6
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);
}
}