summaryrefslogtreecommitdiffstats
path: root/game/server/overworld.hh
diff options
context:
space:
mode:
Diffstat (limited to 'game/server/overworld.hh')
-rw-r--r--game/server/overworld.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/server/overworld.hh b/game/server/overworld.hh
index 2f7b67e..979e5a3 100644
--- a/game/server/overworld.hh
+++ b/game/server/overworld.hh
@@ -8,10 +8,12 @@
#include "shared/dimension.hh"
#include "shared/feature.hh"
+constexpr static unsigned int OW_NUM_TREES = 4U;
+
struct Overworld_Metadata final {
dimension_entropy_map entropy;
dimension_height_map heightmap;
- std::vector<local_pos_xz> trees;
+ std::vector<local_pos> trees;
};
class Overworld final : public Dimension {
@@ -52,7 +54,7 @@ private:
fnl_state m_fnl_nvdi;
private:
- Feature m_feat_tree;
+ Feature m_feat_tree[OW_NUM_TREES];
private:
std::mutex m_mutex;