summaryrefslogtreecommitdiff
path: root/src/d/actor/d_a_obj_food.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-02-20 05:48:29 -0500
committerGitHub <noreply@github.com>2026-02-20 02:48:29 -0800
commit0558bde1e61374f5a1b54453f07fe6cc15525bc1 (patch)
treec1ba397dbde72c71a58a0f15e895aad540b25768 /src/d/actor/d_a_obj_food.cpp
parent95c3626771d589bb8323eb81cf740ecd23e379b5 (diff)
Big cast cleanup (#3076)
* Big cast cleanup * fix for name conflict * rename header * rename cast macros * fix rename mistake --------- Co-authored-by: roeming <roeming@users.noreply.github.com>
Diffstat (limited to 'src/d/actor/d_a_obj_food.cpp')
-rw-r--r--src/d/actor/d_a_obj_food.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/actor/d_a_obj_food.cpp b/src/d/actor/d_a_obj_food.cpp
index e416af3bf0..54e30faf14 100644
--- a/src/d/actor/d_a_obj_food.cpp
+++ b/src/d/actor/d_a_obj_food.cpp
@@ -170,8 +170,7 @@ static void food_normal(obj_food_class* i_this) {
Z2GetAudioMgr()->seStart(Z2SE_OBJ_TOY_BONE_BOUND, &i_this->current.pos,
fabsf(i_this->mOldSpeedY), 0, 1.0f, 1.0f, -1.0f, -1.0f, 0);
-
- i_this->current.angle.y += (s16)cM_rndFX(8000.0f);
+ ANGLE_ADD(i_this->current.angle.y, cM_rndFX(8000.0f));
if (i_this->mBounces == 3) {
i_this->mRotSpeed.z = 0;
@@ -271,7 +270,7 @@ static void action(obj_food_class* i_this) {
}
if (i_this->mType == obj_food_class::TYPE_BALL) {
- i_this->current.angle.x += (s16)(i_this->speedF * 700.0f);
+ ANGLE_ADD(i_this->current.angle.x, i_this->speedF * 700.0f);
cMtx_YrotS(*calc_mtx, i_this->current.angle.y);
vec1.x = 0.0f;
vec1.y = 0.0f;