Fixed merge conflicts. Scoreboard updates team when a team is picked. Fixed some code standard violations and misspellings.

This commit is contained in:
William Moberg
2016-03-13 14:23:56 +01:00
parent 4f99f6ef74
commit ac20e41a5d
7 changed files with 30 additions and 15 deletions
+7 -7
View File
@@ -94,17 +94,17 @@ void Server::Update(double dt)
previousSnapshotMessage = 0;
}
// Send pings each
previousePingMessage += dt;
if (pingInterval < previousePingMessage) {
previousPingMessage += dt;
if (pingInterval < previousPingMessage) {
sendPing();
previousePingMessage = 0;
previousPingMessage = 0;
}
// Time out logic
timOutTimer += dt;
if (checkTimeOutInterval < timOutTimer) {
timeOutTimer += dt;
if (checkTimeOutInterval < timeOutTimer) {
checkForTimeOuts();
timOutTimer = 0;
timeOutTimer = 0;
}
m_EventBroker->Process<Server>();
if (isReadingData) {
@@ -117,7 +117,7 @@ void Server::Update(double dt)
// Take the first CapturePointGameMode component found.
ComponentWrapper& modeComponent = *pool->begin();
// Decrease timer.
double& timer = (double&)modeComponent["ResetCountdown"];
Field<double> timer = modeComponent["ResetCountdown"];
timer -= dt;
if (timer < 0) {
resetMap();