mirror of
https://github.com/zeldaret/tp
synced 2026-05-22 22:44:28 -04:00
Replace some pointer casts with field references. (#3141)
This commit is contained in:
committed by
GitHub
parent
5685fa58c6
commit
dcb5f048d7
@@ -2512,7 +2512,7 @@ void daNPC_TK_c::executeResistanceDemo() {
|
||||
0x200, 0x10);
|
||||
shape_angle.x = -current.angle.x;
|
||||
|
||||
cLib_addCalcAngleS(¤t.angle.y, cLib_targetAngleY((Vec*)¤t, &posWithOffset), 8,
|
||||
cLib_addCalcAngleS(¤t.angle.y, cLib_targetAngleY(¤t.pos, &posWithOffset), 8,
|
||||
0x400, 0x10);
|
||||
shape_angle.y = current.angle.y;
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ static f32 bound(cXyz* param_0, cBgS_PolyInfo const& param_1, f32 param_2) {
|
||||
cXyz pos;
|
||||
f32 abs = param_0->abs();
|
||||
|
||||
C_VECReflect(param_0, (Vec*)&plane, &pos);
|
||||
C_VECReflect(param_0, &plane.mNormal, &pos);
|
||||
*param_0 = pos * abs * param_2;
|
||||
|
||||
return param_0->absXZ();
|
||||
|
||||
Reference in New Issue
Block a user