- document coord related functions (mostly unused by the game)

- renamed code_B7B20.c to coords.c
- removed the exception for asm/core1/code_1E820.s from .gitignore file (should not be in the work tree)
This commit is contained in:
mariob92
2024-09-19 16:52:55 +02:00
parent fbe20325c2
commit 03afd57a54
8 changed files with 105 additions and 84 deletions

View File

@@ -3,6 +3,7 @@
#include "variables.h"
#include "core2/nc/camera.h"
#include <core1/viewport.h>
#include "core2/coords.h"
extern Actor *func_80328230(enum actor_e, f32[3], f32[3]);
extern void func_802BEA4C(f32[3], f32[3], f32, f32[3]);
@@ -124,7 +125,7 @@ void func_802BBA84(void) {
viewport_getPosition_vec3f(vp_position);
viewport_getRotation_vec3f(vp_rotation);
viewport_getLookVector(sp48);
D_8037D8CC = (f32) func_8033EAF8(min, max, vp_position, sp48);
D_8037D8CC = (f32) coords_func_8033EAF8(min, max, vp_position, sp48);
D_8037D8CC += 100.0f;
if (D_8037D8CC < 1000.0f) {
D_8037D8CC = 1000.0f;