1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 18:55:29 +02:00

Change the preprocessor macro that differs server/client builds

This commit is contained in:
sfan5
2024-10-15 15:47:23 +02:00
parent e2ea359925
commit 37095f3e49
45 changed files with 137 additions and 88 deletions

View File

@@ -91,7 +91,7 @@ struct PlayerControl
// joystick input.
void setMovementFromKeys();
#ifndef SERVER
#if CHECK_CLIENT_BUILD()
// For client use
u32 getKeysPressed() const;
inline bool isMoving() const { return movement_speed > 0.001f; }