From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/NetLobbyServer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Stars45/NetLobbyServer.cpp') diff --git a/Stars45/NetLobbyServer.cpp b/Stars45/NetLobbyServer.cpp index c439560..90ee02b 100644 --- a/Stars45/NetLobbyServer.cpp +++ b/Stars45/NetLobbyServer.cpp @@ -206,7 +206,7 @@ NetLobbyServer::LoadMOTD() while (fgets(line, 256, f)) { int n = strlen(line) - 1; - + while (n >= 0 && isspace(line[n])) line[n--] = 0; @@ -301,7 +301,7 @@ NetLobbyServer::ExecFrame() server_mission.length() > 0) { NetCampaignInfo* c = campaigns.last(); - + if (!c || c->name != "Persistent Multiplayer") { c = new(__FILE__,__LINE__) NetCampaignInfo; c->id = Campaign::MULTIPLAYER_MISSIONS; @@ -430,7 +430,7 @@ NetLobbyServer::GameStart() { if (status < NetServerInfo::ACTIVE) { SetStatus(NetServerInfo::BRIEFING); - + if (Starshatter::GetInstance()) { Starshatter::GetInstance()->SetGameMode(Starshatter::PREP_MODE); } @@ -598,7 +598,7 @@ NetLobbyServer::SaveChat() NetChatEntry* c = chat_log[i]; fprintf(f, "%08x [%s] %s\n", c->GetTime(), - c->GetUser().data(), + c->GetUser().data(), c->GetMessage().data()); } @@ -998,7 +998,7 @@ NetLobbyServer::DoLogin(NetPeer* peer, Text msg) // is user already logged in? if (pre_existing) { - if (pre_existing->Pass() == pass && + if (pre_existing->Pass() == pass && pre_existing->GetAddress().IPAddr() == peer->Address().IPAddr()) { } } -- cgit v1.1