diff options
| author | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
| commit | 6dc5194895b6bd61d19bf5c95021471784084325 (patch) | |
| tree | 705c35b3a671a09fc52b406dca81e7761729ded6 /game/server/sessions.cc | |
| parent | 44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff) | |
| download | voxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2 voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip | |
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/server/sessions.cc')
| -rw-r--r-- | game/server/sessions.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/game/server/sessions.cc b/game/server/sessions.cc index df98c75..7ca0d7c 100644 --- a/game/server/sessions.cc +++ b/game/server/sessions.cc @@ -99,7 +99,8 @@ static void on_login_request_packet(const protocol::LoginRequest& packet) protocol::send(packet.peer, protocol::encode(response)); return; } - } else if(packet.password_hash != server_game::password_hash) { + } + else if(packet.password_hash != server_game::password_hash) { protocol::Disconnect response; response.reason = "protocol.password_incorrect"; protocol::send(packet.peer, protocol::encode(response)); @@ -327,7 +328,8 @@ Session* sessions::find(const char* client_username) const auto it = username_map.find(client_username); if(it != username_map.cend()) { return it->second; - } else { + } + else { return nullptr; } } @@ -337,7 +339,8 @@ Session* sessions::find(std::uint16_t client_index) if(client_index < sessions_vector.size()) { if(!sessions_vector[client_index].peer) { return nullptr; - } else { + } + else { return &sessions_vector[client_index]; } } @@ -351,7 +354,8 @@ Session* sessions::find(std::uint64_t client_identity) if(it != identity_map.cend()) { return it->second; - } else { + } + else { return nullptr; } } @@ -360,7 +364,8 @@ Session* sessions::find(ENetPeer* peer) { if(peer != nullptr) { return reinterpret_cast<Session*>(peer->data); - } else { + } + else { return nullptr; } } |
