mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-19 05:22:39 -04:00
Clean up angle constants and conversions (#1135)
* Add angle conversion constants and macros * Replace angle literals with hex instead of decimal
This commit is contained in:
@@ -629,7 +629,7 @@ void ki_atack_move(ki_class* i_this) {
|
||||
cLib_addCalcAngleS2(&a_this->shape_angle.y, fopAcM_searchPlayerAngleY(a_this), 2, 0x1000);
|
||||
if (i_this->mTimers[1] == 0) {
|
||||
i_this->mTimers[1] = cM_rndF(50.0f) + 50.0f;
|
||||
s32 rndFX = cM_rndFX(32768.0f);
|
||||
s32 rndFX = cM_rndFX(0x8000);
|
||||
cMtx_YrotS(*calc_mtx, player->current.angle.y + rndFX);
|
||||
sp24.x = 0.0f;
|
||||
sp24.y = (cM_rndFX(50.0f) + 200.0f) + REG0_F(12);
|
||||
|
||||
Reference in New Issue
Block a user