about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-06-07 00:08:40 +0200
committeroy <Tom_Adams@web.de>2010-06-07 00:08:40 +0200
commita3545b06b4dd230df8a88a9aa4080d877d78ebab (patch)
tree59f7dd00bb27982a808e29da670fbaa48296202b /src/game
parent2ba877bc64e5b0900badb7416acbbf787c09cece (diff)
downloadzcatch-a3545b06b4dd230df8a88a9aa4080d877d78ebab.tar.gz
zcatch-a3545b06b4dd230df8a88a9aa4080d877d78ebab.zip
some cleanup
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamecontroller.cpp7
-rw-r--r--src/game/server/player.cpp1
2 files changed, 1 insertions, 7 deletions
diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp
index 66d84519..5b7051d3 100644
--- a/src/game/server/gamecontroller.cpp
+++ b/src/game/server/gamecontroller.cpp
@@ -435,13 +435,8 @@ void IGameController::Tick()
 					}
 				}
 				
-				// move the player to other team without losing his score
-				// TODO: change in player::set_team needed: player won't lose score on team-change
-				int ScoreBefore = pP->m_Score;
-				int ScoreStartTickBefore = pP->m_ScoreStartTick;
+				// move the player to the other team
 				pP->SetTeam(M^1);
-				pP->m_Score = ScoreBefore;
-				pP->m_ScoreStartTick = ScoreStartTickBefore;
 				
 				pP->Respawn();
 				pP->m_ForceBalanced = true;
diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp
index c295b5d5..2d5d244f 100644
--- a/src/game/server/player.cpp
+++ b/src/game/server/player.cpp
@@ -158,7 +158,6 @@ void CPlayer::SetTeam(int Team)
 	KillCharacter();
 
 	m_Team = Team;
-	//m_ScoreStartTick = Server()->Tick();
 	// we got to wait 0.5 secs before respawning
 	m_RespawnTick = Server()->Tick()+Server()->TickSpeed()/2;
 	dbg_msg("game", "team_join player='%d:%s' m_Team=%d", m_ClientID, Server()->ClientName(m_ClientID), m_Team);