mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Move some more sources to shared target
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user