mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Match all libultra, and more closely match ultralib (#466)
* Massive libultra changes * Fix the build! * Remove crc comment that seemd to break the score script for some reason. * Update README score. * Apply some suggestions * rename sins and coss funcs.
This commit is contained in:
+3
-3
@@ -10,8 +10,8 @@
|
||||
#include "lib/src/libc/rmonPrintf.h"
|
||||
#include "math_util.h"
|
||||
#include "weather.h"
|
||||
#include "lib/src/os/piint.h"
|
||||
#include "include/viint.h"
|
||||
#include "PRinternal/piint.h"
|
||||
#include "PRinternal/viint.h"
|
||||
|
||||
/************ .rodata ************/
|
||||
|
||||
@@ -1058,7 +1058,7 @@ s32 render_sprite_billboard(Gfx **dlist, MatrixS **mtx, Vertex **vertexList, Obj
|
||||
sp44 = (diffX * cosY) + (diffZ * sineY);
|
||||
diffZ = (diffZ * cosY) - (diffX * sineY);
|
||||
tanY = arctan2_f(sp44, sqrtf((diffY * diffY) + (diffZ * diffZ)));
|
||||
tanX = -sins(arctan2_f(sp44, diffZ)) >> 8;
|
||||
tanX = -sins_s16(arctan2_f(sp44, diffZ)) >> 8;
|
||||
if (diffZ < 0.0f) {
|
||||
diffZ = -diffZ;
|
||||
tanX = 1 - tanX;
|
||||
|
||||
Reference in New Issue
Block a user