Checking rendering items out of bounds when looking at the ground & removed handle hijack because of not working properly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user