Checking rendering items out of bounds when looking at the ground & removed handle hijack because of not working properly

This commit is contained in:
IMXNOOBX
2025-01-14 18:12:42 +01:00
parent 58ec1dc3f2
commit 93c831084b
5 changed files with 136 additions and 127 deletions
+5
View File
@@ -11,4 +11,9 @@ void Utils::update_console_title() {
config::show_extra_flags ? title += " | Flags: [O]" : title += " | Flags: [X]";
SetConsoleTitle(title.c_str());
}
bool Utils::is_in_bounds(const Vector3& pos, int width, int heigh) {
return pos.x >= 0 && pos.x <= width && pos.y >= 0 && pos.y <= heigh;
}
+2
View File
@@ -3,11 +3,13 @@
#include <string>
#include "config.hpp"
#include "vector.hpp"
class Utils {
private:
public:
void update_console_title();
bool is_in_bounds(const Vector3& pos, int width, int heigh);
};
inline Utils utils;