Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9565 in orxonox.OLD for branches/proxy/src/util


Ignore:
Timestamp:
Jul 28, 2006, 2:19:52 PM (18 years ago)
Author:
patrick
Message:

server team joining and gui showing fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/util/multiplayer_team_deathmatch.cc

    r9564 r9565  
    138138  if ( currentGameState == GAMESTATE_PRE_GAME || currentGameState == GAMESTATE_GAME )
    139139  {
    140     if ( PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() > NET_UNASSIGNED ) &&
     140    if( !PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() ))
     141      PRINTF(0)("got no stats\n");
     142
     143    if ( PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() ) &&
    141144         box == NULL &&
    142145         (PlayerStats::getStats( SharedNetworkData::getInstance()->getHostID() )->getPreferedTeamId() == TEAM_NOTEAM || bShowTeamChange )
     
    798801
    799802
     803/**
     804 * respawns a playable in the world via spawning points
     805 * @param playable the playable to respawn
     806 * @param teamId the teamId to use
     807 * @param delay time delay for delayed spawning
     808 */
    800809void MultiplayerTeamDeathmatch::respawnPlayable( Playable * playable, int teamId, float delay )
    801810{
Note: See TracChangeset for help on using the changeset viewer.