mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-23 04:59:41 +00:00
Fix Global g_api
References (#1927)
Struct access instead of global symbols.
This commit is contained in:
parent
fc91e63a90
commit
286183e5e3
@ -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
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user