Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9162 in orxonox.OLD for branches/presentation/src/util


Ignore:
Timestamp:
Jul 4, 2006, 6:15:10 PM (18 years ago)
Author:
rennerc
Message:
 
File:
1 edited

Legend:

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

    r9141 r9162  
    210210  while ( this->killList.begin() != this->killList.end() )
    211211  {
     212    PRINTF(0)("KKKKKKKKIIIIIIIIILLLLLLLLLLLLL\n");
    212213    onKill( this->killList.begin()->getVictim(), this->killList.begin()->getKiller() );
    213214    this->killList.erase( this->killList.begin() );
     
    709710{
    710711  if ( !victim )
    711     return;
     712  {
     713    PRINTF(0)("victim == NULL\n");
     714    return;
     715  }
    712716  if ( !killer )
    713     return;
     717  {
     718    PRINTF(0)("killer == NULL\n");
     719    return;
     720  }
    714721 
    715722  int killerUserId = killer->getOwner();
    716723  int victimUserId = victim->getOwner();
     724 
     725  PRINTF(0)("%d %d %x %x %s %s\n", killerUserId, victimUserId, killer, victim, killer->getClassName(), victim->getClassName());
    717726
    718727  PlayerStats & victimStats = *PlayerStats::getStats( victimUserId );
     
    720729 
    721730  if ( killerStats.getPlayable() != killer || victimStats.getPlayable() != victim )
    722     return;
     731  {
     732    PRINTF(0)("killerStats.getPlayable() != killer || victimStats.getPlayable() != victim\n");
     733    PRINTF(0)("%x %x %x %x\n", killerStats.getPlayable(), killer, victimStats.getPlayable(), victim );
     734    PRINTF(0)("%d %d %d %d\n", killerStats.getPlayable()->getUniqueID(), killer->getUniqueID(), victimStats.getPlayable()->getUniqueID(), victim->getUniqueID() );
     735    return;
     736  }
    723737
    724738  //check for suicide
Note: See TracChangeset for help on using the changeset viewer.