Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7118 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Feb 8, 2006, 9:59:21 AM (19 years ago)
Author:
patrick
Message:

trunk: mp explosion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/multiplayer_team_deathmatch.cc

    r7116 r7118  
    184184  }
    185185
    186  
     186
    187187  if ( SharedNetworkData::getInstance()->isGameServer() )
    188188  {
     
    190190    float offsety = 323.0f;
    191191    float offsetz = 200.0f;
    192    
     192
    193193    offsetz += 10;
    194    
     194
    195195    Terrain * terrain = dynamic_cast<Terrain*>(*(ClassList::getList( CL_TERRAIN )->begin()));
    196196    const std::list<BaseObject*> * list = ClassList::getList( CL_SPACE_SHIP );
     
    209209      //PRINTF(0)("x = %f, y = %f, z = %f, height = %f\n", terrx, terry, terrz, terrain->getHeight( terrx, terry ));
    210210      //ss->setRelCoorSoft( ss->getAbsCoor().x, terrain->getHeight( terrx, terry )-offsety, ss->getAbsCoor().z );
    211      
     211
    212212      float dist = (dynamic_cast<Playable*>(*it)->getAbsCoor() - big_left).len();
    213213      if( (dynamic_cast<Playable*>(*it)->getAbsCoor() - big_left).len() > rBig &&
     
    215215           (dynamic_cast<Playable*>(*it)->getAbsCoor() - small_left).len() > rSmall &&
    216216           (dynamic_cast<Playable*>(*it)->getAbsCoor() - small_middle).len() > rSmall &&
    217            (dynamic_cast<Playable*>(*it)->getAbsCoor() - small_right).len() > rSmall)
     217           (dynamic_cast<Playable*>(*it)->getAbsCoor() - small_right).len() > rSmall
     218           && ss->getAbsCoor().x > -1000)
    218219      {
    219220        PRINTF(0)("KILLLLLLLL\n");
     
    221222        if((*it)->isA(CL_SPACE_SHIP))
    222223        {
    223           dynamic_cast<SpaceShip*>(*it)->networkCollisionList.push_back(116369220.33434f);
    224           dynamic_cast<SpaceShip*>(*it)->doCollideNetwork(116369220.33434f);
     224          dynamic_cast<SpaceShip*>(*it)->networkCollisionList.push_back(1163692);
     225          dynamic_cast<SpaceShip*>(*it)->doCollideNetwork(11636922);
    225226        }
    226227      }
Note: See TracChangeset for help on using the changeset viewer.