diff options
| author | Random <28494085+Random06457@users.noreply.github.com> | 2020-08-15 19:23:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-15 13:23:29 -0400 |
| commit | d8d789d2a538f9468d1e9009423acf67a3e0af0f (patch) | |
| tree | 6a9f1a63ce810ce95b6c3f41a19b3017cfee755a /src/code/sys_math3d.c | |
| parent | d3b88e1b1cc371388abe9f34e4880342da136bf6 (diff) | |
Match a few functions (#324)
* match a few functions
* run formath.sh
* minor fixes
Diffstat (limited to 'src/code/sys_math3d.c')
| -rwxr-xr-x | src/code/sys_math3d.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/code/sys_math3d.c b/src/code/sys_math3d.c index 64f4a0d4c..4e7114efa 100755 --- a/src/code/sys_math3d.c +++ b/src/code/sys_math3d.c @@ -357,7 +357,7 @@ s32 func_800CB934(Vec3f* arg0, Vec3f* arg1, Vec3f* arg2) { s32 ret = 0; if ((arg2->y - arg1->x) < (arg0->y - arg0->x)) { - ret = 1; + ret |= 1; } if ((arg0->y - arg0->x) < (arg1->y - arg2->x)) { @@ -413,19 +413,19 @@ s32 func_800CBAE4(Vec3f* v0, Vec3f* v1, Vec3f* v2) { s32 ret = 0; if ((v2->x + v2->y + v2->z) < (v0->x + v0->y + v0->z)) { - ret = 0x01; + ret |= 1; } if ((-v1->x + v2->y + v2->z) < (-v0->x + v0->y + v0->z)) { - ret |= 0x02; + ret |= 2; } if ((-v1->x + v2->y - v1->z) < (-v0->x + v0->y - v0->z)) { - ret |= 0x04; + ret |= 4; } if ((v2->x + v2->y - v1->z) < (v0->x + v0->y - v0->z)) { - ret |= 0x08; + ret |= 8; } if ((v2->x - v1->y + v2->z) < (v0->x - v0->y + v0->z)) { |
