forked from Ports/perfect_dark
port: use system trig functions
this might cause different behavior from the N64 version or it might fix some issues, who knows
This commit is contained in:
1 parent
7d5f33d033
commit
dad5b3c074
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -170,7 +170,7 @@ JSON_FILES += $(wildcard $(A_DIR)/*.json)
|
||||
|
||||
JSON_HEADERS := $(patsubst $(A_DIR)/%.json, $(G_DIR)/%.h, $(JSON_FILES))
|
||||
|
||||
C_FILES := $(shell find src/game port -name '*.c')
|
||||
C_FILES := $(shell find src/game port -name '*.c' ! -name 'atan2f.c' ! -name 'acosfasinf.c')
|
||||
C_FILES := $(C_FILES) \
|
||||
$(wildcard src/lib/mp3/*.c) \
|
||||
$(wildcard src/lib/naudio/*.c) \
|
||||
|
||||
@@ -1577,6 +1577,8 @@ static f32 modelasmAcosOrAsin(f32 f6)
|
||||
return 0.000047937632189132f * t3;
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_N64
|
||||
|
||||
f32 cosf(f32 radians)
|
||||
{
|
||||
return sinf(radians + 1.570796251297f);
|
||||
@@ -1650,3 +1652,5 @@ f32 sinf(f32 radians)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user