Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 25, 2011, 10:56:31 PM (13 years ago)
Author:
jo
Message:

On the way to a multiplayer gametype basceclass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.cc

    r8901 r8904  
    6767    {
    6868        Gametype::playerEntered(player);
    69 
    70         std::vector<unsigned int> playersperteam(this->teams_, 0);
     69        this->findAndSetTeam(player);
     70    }
     71
     72    void TeamGametype::findAndSetTeam(PlayerInfo* player)
     73    {
     74         std::vector<unsigned int> playersperteam(this->teams_, 0);
    7175
    7276        for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it)
     
    8690
    8791        this->teamnumbers_[player] = minplayersteam;
     92
    8893    }
    8994
Note: See TracChangeset for help on using the changeset viewer.