summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetLobbyServer.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/NetLobbyServer.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/NetLobbyServer.cpp')
-rw-r--r--Stars45/NetLobbyServer.cpp10
1 files changed, 5 insertions, 5 deletions
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()) {
}
}