IsNetCarActive matches

This commit is contained in:
Dethrace Labs 2025-09-01 08:56:57 +12:00 committed by Dethrace Engineering Department
parent 8c0b0299ad
commit 7aff2e19e5
2 changed files with 4 additions and 3 deletions

View File

@ -1012,7 +1012,7 @@ void InitWobbleStuff(void) {
ClearWobbles();
for (i = 0; i < COUNT_OF(gCosine_array); i++) {
gCosine_array[i] = cos(i / 64.0f * DR_PI / 2.0f);
gCosine_array[i] = cos(i / 64.0 * DR_PI / 2.0f);
}
}

View File

@ -1800,7 +1800,9 @@ int IsNetCarActive(br_vector3* pPoint) {
}
if (gCar_to_view != &gProgram_state.current_car) {
BrVector3Sub(&tv, &gCar_to_view->car_master_actor->t.t.translate.t, pPoint);
return BrVector3LengthSquared(&tv) < 100.f;
if (BrVector3LengthSquared(&tv) < 100.f) {
return 1;
}
}
return 0;
}
@ -3980,7 +3982,6 @@ void ShowOppoPaths(void) {
#include <errno.h>
#include <string.h>
// IDA: void __cdecl WriteOutOppoPaths()
// FUNCTION: CARM95 0x0040e9d4
void WriteOutOppoPaths(void) {