diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-10 20:07:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-10 20:07:46 +0000 |
commit | c9d9aedb9f29725e1106ce1f7ddbc1707400d105 (patch) | |
tree | 93651384ef65487bd2f0d6d617e0c8256c1b99a0 /game/terrain.cpp | |
parent | Combine GeoData and Terrain class hierarchies (diff) | |
download | ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.tar.bz2 ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.tar.xz ilt-c9d9aedb9f29725e1106ce1f7ddbc1707400d105.zip |
Replace mesh generation counter with afterChange event
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r-- | game/terrain.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp index 786b9b0..01af163 100644 --- a/game/terrain.cpp +++ b/game/terrain.cpp @@ -56,10 +56,12 @@ Terrain::generateMeshes() void Terrain::tick(TickDuration) { - if (const auto newGeneration = getGeneration(); newGeneration != geoGeneration) { +} + +void +Terrain::afterChange() +{ generateMeshes(); - geoGeneration = newGeneration; - } } void |