From db173907e4b13b76b6625b5dae0f1a7d26fa5b18 Mon Sep 17 00:00:00 2001 From: lahm86 <33758420+lahm86@users.noreply.github.com> Date: Sun, 8 Sep 2024 12:55:11 +0100 Subject: [PATCH] overlay: fix regression in pickup display (#215) Resolves #213. --- src/game/overlay.c | 2 +- src/game/overlay.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/overlay.c b/src/game/overlay.c index 0732cbd9..067ab95d 100644 --- a/src/game/overlay.c +++ b/src/game/overlay.c @@ -243,7 +243,7 @@ void __cdecl Overlay_DrawPickups(const bool timed) } } -void __cdecl Overlay_AddDisplayPickup(const GAME_OBJECT_ID object_id) +void __cdecl Overlay_AddDisplayPickup(const int16_t object_id) { if (object_id == O_SECRET_1 || object_id == O_SECRET_2 || object_id == O_SECRET_3) { diff --git a/src/game/overlay.h b/src/game/overlay.h index 2ccb0ebe..a51ce197 100644 --- a/src/game/overlay.h +++ b/src/game/overlay.h @@ -11,6 +11,6 @@ void __cdecl Overlay_MakeAmmoString(char *string); void __cdecl Overlay_DrawAmmoInfo(void); void __cdecl Overlay_InitialisePickUpDisplay(void); void __cdecl Overlay_DrawPickups(bool pickup_state); -void __cdecl Overlay_AddDisplayPickup(GAME_OBJECT_ID object_id); +void __cdecl Overlay_AddDisplayPickup(int16_t object_id); void __cdecl Overlay_DisplayModeInfo(const char *string); void __cdecl Overlay_DrawModeInfo(void);