remove redundant SQ definitions

This commit is contained in:
Banjo Kazooie
2024-09-13 20:31:14 -05:00
parent 425e05a58b
commit 50e1368ae1
3 changed files with 4 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
#include "rand.h"
#include "functions.h"
#include "variables.h"
#include <math.h>
#ifndef MIN
#define MIN(s,t) ((s)<(t)?(s):(t))
#endif
@@ -11,10 +11,6 @@
#define MAX(s,t) ((s)<(t)?(t):(s))
#endif
#ifndef SQUARE
#define SQUARE(s) ((s)*(s))
#endif
void func_80328FB0(Actor *, f32);
void subaddie_set_state_with_direction(Actor*, s32, f32, s32);
@@ -194,7 +190,7 @@ void __chConga_sendOrangeProjectile(ActorMarker *congaMarker){
orangePtr->velocity_y = (60.0)*((conga_state == 7) ? 0.5: 1.0);
orangePtr->velocity_z = plyr.pos_z - orangePtr->position_z;
if(SQUARE(plyr.pos_z - m->propPtr->z) + SQUARE(plyr.pos_x - m->propPtr->x) < 40000.0f ){
if(SQ(plyr.pos_z - m->propPtr->z) + SQ(plyr.pos_x - m->propPtr->x) < 40000.0f ){
temp_f20 = randf2(2.4f, 4.4f); temp_f22 = randf2(2.4f, 4.4f); //f22
orangePtr->velocity[0] *= (randf() < 0.5)? temp_f20 : -temp_f20;
orangePtr->velocity[1] = randf2(1.8f, 2.2f) * 60.0;