Changeset 9257 in orxonox.OLD for branches/proxy/src/util
- Timestamp:
- Jul 12, 2006, 5:10:09 PM (19 years ago)
- Location:
- branches/proxy/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/util/game_rules.cc
r9008 r9257 88 88 void GameRules::registerKill(const Kill& kill) 89 89 { 90 if ( !SharedNetworkData::getInstance()->is GameServer() )90 if ( !SharedNetworkData::getInstance()->isMasterServer() ) 91 91 return; 92 92 -
branches/proxy/src/util/multiplayer_team_deathmatch.cc
r9235 r9257 204 204 assignPlayable(); 205 205 206 if ( !SharedNetworkData::getInstance()->is GameServer() )206 if ( !SharedNetworkData::getInstance()->isMasterServer() ) 207 207 return; 208 208 … … 214 214 this->killList.erase( this->killList.begin() ); 215 215 } 216 216 217 217 218 218 … … 268 268 void MultiplayerTeamDeathmatch::checkGameRules() 269 269 { 270 if ( !SharedNetworkData::getInstance()->is GameServer() )270 if ( !SharedNetworkData::getInstance()->isMasterServer() ) 271 271 return; 272 272 … … 320 320 return "maps/male_fiend.pcx"; 321 321 } 322 322 323 323 return ""; 324 324 } … … 330 330 return 10.0f; 331 331 } 332 332 333 333 return 1.0f; 334 334 } … … 680 680 char st[10]; 681 681 int i = 0; 682 682 683 683 i = 2; 684 684 for ( TeamScoreList::const_iterator it = scoreList[0].begin(); it != scoreList[0].end(); it++ ) … … 719 719 return; 720 720 } 721 721 722 722 int killerUserId = killer->getOwner(); 723 723 int victimUserId = victim->getOwner(); 724 724 725 725 PRINTF(0)("%d %d %x %x %s %s\n", killerUserId, victimUserId, killer, victim, killer->getClassName(), victim->getClassName()); 726 726 727 727 PlayerStats & victimStats = *PlayerStats::getStats( victimUserId ); 728 728 PlayerStats & killerStats = *PlayerStats::getStats( killerUserId ); 729 729 730 730 if ( killerStats.getPlayable() != killer || victimStats.getPlayable() != victim ) 731 731 {
Note: See TracChangeset
for help on using the changeset viewer.