Skip to content

Commit 5762cfb

Browse files
committed
Clarify AGbeginAnimLoopAnim
1 parent f7ce52d commit 5762cfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/game/anim.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static bool sub_42D570(AnimRunInfo* run_info);
198198
static bool sub_42D6F0(AnimRunInfo* run_info);
199199
static bool sub_42D7D0(AnimRunInfo* run_info);
200200
static bool sub_42D910(AnimRunInfo* run_info);
201-
static bool sub_42DA50(AnimRunInfo* run_info);
201+
static bool AGbeginAnimLoopAnim(AnimRunInfo* run_info);
202202
static bool sub_42DCF0(AnimRunInfo* run_info);
203203
static bool sub_42DDE0(AnimRunInfo* run_info);
204204
static bool sub_42DED0(AnimRunInfo* run_info);
@@ -303,7 +303,7 @@ static AnimGoalNode anim_goal_node_animate_loop = {
303303
/* 1 */ { sub_42CA90, { AGDATA_SELF_OBJ, -1 }, -1, 2, 0, 4, 0 },
304304
/* 2 */ { sub_42DCF0, { AGDATA_SELF_OBJ, -1 }, -1, 0x10000000, 800, 3, 0 },
305305
/* 3 */ { sub_42DDE0, { AGDATA_SELF_OBJ, -1 }, -1, 0x10000000, -2, 0x10000000, -2 },
306-
/* 4 */ { sub_42DA50, { AGDATA_SELF_OBJ, AGDATA_ANIM_ID }, -1, 0x90000000, 0, 0x10000000, -2 },
306+
/* 4 */ { AGbeginAnimLoopAnim, { AGDATA_SELF_OBJ, AGDATA_ANIM_ID }, -1, 0x90000000, 0, 0x10000000, -2 },
307307
/* 5 */ { 0 },
308308
/* 6 */ { 0 },
309309
/* 7 */ { 0 },
@@ -2301,7 +2301,7 @@ static AnimGoalNode anim_goal_node_animate_loop_fire_dmg = {
23012301
/* 1 */ { sub_42CA90, { AGDATA_SELF_OBJ, -1 }, -1, 2, 0, 4, 0 },
23022302
/* 2 */ { sub_42DCF0, { AGDATA_SELF_OBJ, -1 }, -1, 0x10000000, 800, 3, 0 },
23032303
/* 3 */ { sub_42DDE0, { AGDATA_SELF_OBJ, -1 }, -1, 5, 0, 0x10000000, -2 },
2304-
/* 4 */ { sub_42DA50, { AGDATA_SELF_OBJ, AGDATA_ANIM_ID }, -1, 0x90000000, 0, 5, 0 },
2304+
/* 4 */ { AGbeginAnimLoopAnim, { AGDATA_SELF_OBJ, AGDATA_ANIM_ID }, -1, 0x90000000, 0, 5, 0 },
23052305
/* 5 */ { AGapplyFireDmg, { AGDATA_SELF_OBJ, AGDATA_PARENT_OBJ }, -1, 0x90000000, 0, 0x10000000, -2 },
23062306
/* 6 */ { 0 },
23072307
/* 7 */ { 0 },
@@ -9832,7 +9832,7 @@ bool sub_42D910(AnimRunInfo* run_info)
98329832
}
98339833

98349834
// 0x42DA50
9835-
bool sub_42DA50(AnimRunInfo* run_info)
9835+
bool AGbeginAnimLoopAnim(AnimRunInfo* run_info)
98369836
{
98379837
int64_t obj;
98389838
tig_art_id_t art_id;
@@ -9867,7 +9867,7 @@ bool sub_42DA50(AnimRunInfo* run_info)
98679867
&& (obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS) & (OCF_PARALYZED | OCF_STUNNED)) != 0) {
98689868
art_id = obj_field_int32_get(obj, OBJ_F_CURRENT_AID);
98699869
anim = tig_art_id_anim_get(art_id);
9870-
if (anim < 17 || anim > 19) {
9870+
if (!(anim >= TIG_ART_ANIM_DECAPITATION && anim <= TIG_ART_ANIM_SEVERED_LEG)) {
98719871
return false;
98729872
}
98739873
}

0 commit comments

Comments
 (0)