mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix heightmap loading detection and widen wall collision radius
- Use explicit loaded flag for heightmap instead of checking height values - Increase player collision radius from 0.50 to 0.55 for better wall collision
This commit is contained in:
parent
f1bdf0bb67
commit
f3f97cf9de
3 changed files with 4 additions and 2 deletions
|
|
@ -21,9 +21,10 @@ struct ADTCoord {
|
|||
*/
|
||||
struct HeightMap {
|
||||
std::array<float, 145> heights; // 9x9 outer + 8x8 inner vertices
|
||||
bool loaded = false;
|
||||
|
||||
float getHeight(int x, int y) const;
|
||||
bool isLoaded() const { return heights[0] != 0.0f || heights[1] != 0.0f; }
|
||||
bool isLoaded() const { return loaded; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue