~armagetronad-dev/armagetronad/0.3.1

« back to all changes in this revision

Viewing changes to src/engine/ePlayer.cpp

  • Committer: Manuel Moos
  • Date: 2009-01-12 10:36:32 UTC
  • Revision ID: z-man@users.sf.net-20090112103632-yroyhl5crs8uad38
Fixed flashing of teamname between rounds if server does not support/allow custom team names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7190
7190
void ePlayerNetID::SetTeamname(const char* newTeamname)
7191
7191
{
7192
7192
    teamname = newTeamname;
7193
 
    if (bool(currentTeam) && currentTeam->OldestHumanPlayer() &&
 
7193
    if (sn_GetNetState() != nCLIENT && 
 
7194
        bool(currentTeam) && currentTeam->OldestHumanPlayer() &&
7194
7195
            currentTeam->OldestHumanPlayer()->ID()==ID())
7195
7196
    {
7196
7197
        currentTeam->UpdateAppearance();