summaryrefslogtreecommitdiffstats
path: root/game/client/chunk_renderer.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-21 18:16:40 +0500
committeruntodesu <kirill@untode.su>2025-03-21 18:16:40 +0500
commit9f80a278a6f188c8e9131df0684bad14a07491ee (patch)
tree067c6ad4b892a34c3c03e3ecdbe312453bd46ea4 /game/client/chunk_renderer.cc
parentfddd7f761176bb45cfdd41eeccaeadac22d33ddf (diff)
downloadvoxelius-9f80a278a6f188c8e9131df0684bad14a07491ee.tar.bz2
voxelius-9f80a278a6f188c8e9131df0684bad14a07491ee.zip
Toggles system rework, added flight pmove mode
- Reworked toggles to use a constant-styled enumerations - Added TOGGLE_PM_FLIGHT and an according movement mode. Now server-side just doesn't simulate gravity altogether for players, instead relying on whatever the client provides which works fine for now. Closes #12
Diffstat (limited to 'game/client/chunk_renderer.cc')
-rw-r--r--game/client/chunk_renderer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/client/chunk_renderer.cc b/game/client/chunk_renderer.cc
index 1b038b1..7282f4a 100644
--- a/game/client/chunk_renderer.cc
+++ b/game/client/chunk_renderer.cc
@@ -87,7 +87,7 @@ void chunk_renderer::render(void)
glDepthFunc(GL_LEQUAL);
glLineWidth(1.0f);
- if(toggles::render_wireframe)
+ if(toggles::get(TOGGLE_WIREFRAME))
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
else glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
@@ -192,7 +192,7 @@ void chunk_renderer::render(void)
}
}
- if(toggles::draw_chunk_borders) {
+ if(toggles::get(TOGGLE_CHUNK_AABB)) {
outline::prepare();
for(const auto [entity, chunk, mesh] : group.each()) {