mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2024-11-26 22:40:33 +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
|
if (entity->hitParams) { // If the candle is destroyed
|
||||||
Entity* entityDropItem;
|
Entity* entityDropItem;
|
||||||
#if defined(STAGE_IS_NO0)
|
#if defined(STAGE_IS_NO0)
|
||||||
breakableType == 1 ? g_api_PlaySfx(SFX_GLASS_BREAK_C)
|
breakableType == 1 ? g_api.PlaySfx(SFX_GLASS_BREAK_C)
|
||||||
: g_api_PlaySfx(SFX_CANDLE_HIT_WHOOSH_A);
|
: g_api.PlaySfx(SFX_CANDLE_HIT_WHOOSH_A);
|
||||||
#else
|
#else
|
||||||
g_api.PlaySfx(SFX_BREAKABLE_HIT);
|
g_api.PlaySfx(SFX_BREAKABLE_HIT);
|
||||||
#endif
|
#endif
|
||||||
|
@ -224,7 +224,7 @@ void EntityHammer(Entity* self) {
|
|||||||
if ((self->ext.GH_Props.unkB0[0] == 6) &&
|
if ((self->ext.GH_Props.unkB0[0] == 6) &&
|
||||||
(self->ext.GH_Props.unkB4[0] == 0)) {
|
(self->ext.GH_Props.unkB4[0] == 0)) {
|
||||||
PlaySfxPositional(SFX_FM_EXPLODE_D);
|
PlaySfxPositional(SFX_FM_EXPLODE_D);
|
||||||
g_api_func_80102CD8(1);
|
g_api.func_80102CD8(1);
|
||||||
}
|
}
|
||||||
if ((self->ext.GH_Props.unkB0[0] == 0) &&
|
if ((self->ext.GH_Props.unkB0[0] == 0) &&
|
||||||
(self->ext.GH_Props.unkB4[0] == 0)) {
|
(self->ext.GH_Props.unkB4[0] == 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user