Fix Global g_api References (#1927)

Struct access instead of global symbols.
This commit is contained in:
Jonathan Hohle 2024-11-21 06:38:33 -07:00 committed by GitHub
parent fc91e63a90
commit 286183e5e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ void EntityBreakable(Entity* entity) {
if (entity->hitParams) { // If the candle is destroyed
Entity* entityDropItem;
#if defined(STAGE_IS_NO0)
breakableType == 1 ? g_api_PlaySfx(SFX_GLASS_BREAK_C)
: g_api_PlaySfx(SFX_CANDLE_HIT_WHOOSH_A);
breakableType == 1 ? g_api.PlaySfx(SFX_GLASS_BREAK_C)
: g_api.PlaySfx(SFX_CANDLE_HIT_WHOOSH_A);
#else
g_api.PlaySfx(SFX_BREAKABLE_HIT);
#endif

View File

@ -224,7 +224,7 @@ void EntityHammer(Entity* self) {
if ((self->ext.GH_Props.unkB0[0] == 6) &&
(self->ext.GH_Props.unkB4[0] == 0)) {
PlaySfxPositional(SFX_FM_EXPLODE_D);
g_api_func_80102CD8(1);
g_api.func_80102CD8(1);
}
if ((self->ext.GH_Props.unkB0[0] == 0) &&
(self->ext.GH_Props.unkB4[0] == 0)) {