~luke-jr/tr2norigins/armagetron-0.2.8-t2o-rename

« back to all changes in this revision

Viewing changes to src/engine/eTeam.cpp

  • Committer: epsy46
  • Date: 2008-06-19 17:02:47 UTC
  • Revision ID: epsy46@free.fr-20080619170247-5vcwrintak1dydgb
fixed more stuff with /team messages upon invite

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include <set>
34
34
 
35
 
tColoredString & operator << ( tColoredString &s, eTeam * team)
 
35
tString & operator << ( tString &s, const eTeam & team)
36
36
{
37
 
    if ( !team )
 
37
    if ( !(&team) )
38
38
        return s << tOutput("$player_spectator_message");
39
39
    else
40
 
        return s << team->GetColoredName();
 
40
        return s << team.GetColoredName();
41
41
}
42
 
std::ostream & operator << ( std::ostream &s, eTeam * team)
 
42
std::ostream & operator << ( std::ostream &s, const eTeam & team)
43
43
{
44
 
    if ( !team )
 
44
    if ( !(&team) )
45
45
        return s << tOutput("$player_spectator_message");
46
46
    else
47
 
        return s << team->GetColoredName();
 
47
        return s << team.GetColoredName();
48
48
}
49
49
 
50
50
#define TEAMCOLORS 8