diff --git a/.gitignore b/.gitignore index e2b78543..457e82a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ build/ .vscode/ +venv/ ph_*/ *.nds *bios.bin diff --git a/include/Map/Course.hpp b/include/Map/Course.hpp index 8f87379c..4cc3835f 100644 --- a/include/Map/Course.hpp +++ b/include/Map/Course.hpp @@ -41,7 +41,11 @@ class Course : public SysObject { /* 08c */ s32 mScreenMapOffsetY; /* 090 */ unk32 mUnk_090; /* 094 */ unk32 mUnk_094; + +public: /* 098 */ AABB mBounds; + +private: /* 0b0 */ s8 mNumMaps; /* 0b1 */ unk8 mUnk_0b1; /* 0b2 */ unk8 mUnk_0b2; diff --git a/include/Map/MapManager.hpp b/include/Map/MapManager.hpp index ff3397b9..e2cbcb21 100644 --- a/include/Map/MapManager.hpp +++ b/include/Map/MapManager.hpp @@ -102,7 +102,7 @@ public: unk8 Get_MapData_Unk2a(); static unk8 func_ov00_02083374(); static unk8 func_ov00_02083384(); - unk8 GetCourseMinX(); + q20 GetCourseMinX(); unk8 GetCourseMinZ(); unk8 GetCourseMaxX(); unk8 GetCourseMaxZ(); diff --git a/src/00_Core/Map/MapManager.cpp b/src/00_Core/Map/MapManager.cpp index 69be3117..6ee1310b 100644 --- a/src/00_Core/Map/MapManager.cpp +++ b/src/00_Core/Map/MapManager.cpp @@ -62,7 +62,11 @@ unk8 MapManager::Get_MapData_Unk28() {} unk8 MapManager::Get_MapData_Unk2a() {} unk8 MapManager::func_ov00_02083374() {} unk8 MapManager::func_ov00_02083384() {} -unk8 MapManager::GetCourseMinX() {} + +ARM q20 MapManager::GetCourseMinX() { + return (this->mCourse->mBounds).min.x; +} + unk8 MapManager::GetCourseMinZ() {} unk8 MapManager::GetCourseMaxX() {} unk8 MapManager::GetCourseMaxZ() {}