Skip to content

Commit ed1993c

Browse files
committed
Fixed invalid event call
1 parent 4ff19c5 commit ed1993c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Torch

src/game/behaviors/blue_coin.inc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void bhv_hidden_blue_coin_loop(void) {
3636

3737
break;
3838

39-
case HIDDEN_BLUE_COIN_ACT_ACTIVE:
39+
case HIDDEN_BLUE_COIN_ACT_ACTIVE: {
4040
// Become tangible
4141
cur_obj_enable_rendering();
4242
cur_obj_become_tangible();
@@ -55,6 +55,7 @@ void bhv_hidden_blue_coin_loop(void) {
5555
}
5656

5757
break;
58+
}
5859
}
5960

6061
o->oInteractStatus = 0;
@@ -114,7 +115,7 @@ void bhv_blue_coin_switch_loop(void) {
114115

115116
break;
116117

117-
case BLUE_COIN_SWITCH_ACT_TICKING:
118+
case BLUE_COIN_SWITCH_ACT_TICKING: {
118119
CALL_CANCELLABLE_EVENT(ModifyObjectBehavior, o, MODEL_BLUE_COIN_SWITCH) {
119120
// Tick faster when the blue coins start blinking
120121
if (o->oTimer < 200) {
@@ -130,5 +131,6 @@ void bhv_blue_coin_switch_loop(void) {
130131
}
131132
}
132133
break;
134+
}
133135
}
134136
}

0 commit comments

Comments
 (0)