mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-04-22 10:02:08 +00:00
Don't pass by reference.
This commit is contained in:
parent
f45aa39528
commit
e83b25b158
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ extern "C" void osContGetQuery(RDRAM_ARG PTR(OSContStatus) data_) {
|
|||
__osContGetInitData(&pattern, data);
|
||||
}
|
||||
|
||||
void convert_to_n64_range(float& x, float& y, int8_t& stick_x, int8_t& stick_y) {
|
||||
void convert_to_n64_range(float x, float y, int8_t& stick_x, int8_t& stick_y) {
|
||||
constexpr float PI = 3.14159265358979323846f;
|
||||
float magnitude = sqrtf(x * x + y * y);
|
||||
if (magnitude > 1.0f) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue