mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-22 06:20:02 -04:00
daNpc_Cb1_c Almost OK (#822)
* daNpc_Cb1_c Almost OK Down to regswaps/minor instruction issues * Oops That inline was fake * Some Cleanup - Fill in more inlines - Reorganize daNpc_Cb1_c inlines - Use inlines more - Some naming and typing consistency * Naming, Consistency Tweaks - TRUE/FALSE macros for all cases of BOOL, use int -> BOOL sometimes - Rename HIO to be consistent with other NPCs - Animation enum * Some HIO Names * Clarity Tweaks - NULL in more asserts - Squared constants
This commit is contained in:
@@ -647,6 +647,14 @@ inline s32 fopAcM_seenPlayerAngleY(fopAc_ac_c* actor) {
|
||||
return fopAcM_seenActorAngleY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
inline s32 fopAcM_toActorShapeAngleY(fopAc_ac_c* actor1, fopAc_ac_c* actor2) {
|
||||
return actor1->shape_angle.y - actor2->shape_angle.y;
|
||||
}
|
||||
|
||||
inline s32 fopAcM_toPlayerShapeAngleY(fopAc_ac_c* actor) {
|
||||
return fopAcM_toActorShapeAngleY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
inline f32 fopAcM_searchPlayerDistanceY(fopAc_ac_c* actor) {
|
||||
return fopAcM_searchActorDistanceY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user