Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarVehicle.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 00:50:47 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-28 00:50:47 +1000
commitefa38723961fb8003577c6589fc2b7032195235c (patch)
treead7f8318872b91f23a47fe3e34124a5a0525ab7c /source/game/StarVehicle.cpp
parent152af876550ec63bac9d7aa27b1994268c80f878 (diff)
Don't do spatial logging on the server
Diffstat (limited to 'source/game/StarVehicle.cpp')
-rw-r--r--source/game/StarVehicle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarVehicle.cpp b/source/game/StarVehicle.cpp
index 38755d5..83fc9e2 100644
--- a/source/game/StarVehicle.cpp
+++ b/source/game/StarVehicle.cpp
@@ -315,7 +315,8 @@ void Vehicle::update(uint64_t) {
if (world()->isClient())
m_scriptedAnimator.update();
- SpatialLogger::logPoly("world", m_movementController.collisionBody(), {255, 255, 0, 255});
+ if (world()->isClient())
+ SpatialLogger::logPoly("world", m_movementController.collisionBody(), {255, 255, 0, 255});
}
void Vehicle::render(RenderCallback* renderer) {