1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Move some more sources to shared target

This commit is contained in:
sfan5 2024-09-09 21:34:56 +02:00
parent 4e9aa7dc77
commit b61c83a19d
12 changed files with 33 additions and 45 deletions

View file

@ -31,7 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <tuple>
bool is_valid_player_name(std::string_view name) {
bool is_valid_player_name(std::string_view name)
{
return !name.empty() && name.size() <= PLAYERNAME_SIZE && string_allowed(name, PLAYERNAME_ALLOWED_CHARS);
}
@ -209,8 +210,6 @@ void PlayerControl::setMovementFromKeys()
movement_direction = std::atan2(x, y);
}
#if CHECK_CLIENT_BUILD()
u32 PlayerControl::getKeysPressed() const
{
u32 keypress_bits =
@ -254,7 +253,6 @@ u32 PlayerControl::getKeysPressed() const
return keypress_bits;
}
#endif
void PlayerControl::unpackKeysPressed(u32 keypress_bits)
{