Changeset 7118 in orxonox.OLD for trunk/src/util
- Timestamp:
- Feb 8, 2006, 9:59:21 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/multiplayer_team_deathmatch.cc
r7116 r7118 184 184 } 185 185 186 186 187 187 if ( SharedNetworkData::getInstance()->isGameServer() ) 188 188 { … … 190 190 float offsety = 323.0f; 191 191 float offsetz = 200.0f; 192 192 193 193 offsetz += 10; 194 194 195 195 Terrain * terrain = dynamic_cast<Terrain*>(*(ClassList::getList( CL_TERRAIN )->begin())); 196 196 const std::list<BaseObject*> * list = ClassList::getList( CL_SPACE_SHIP ); … … 209 209 //PRINTF(0)("x = %f, y = %f, z = %f, height = %f\n", terrx, terry, terrz, terrain->getHeight( terrx, terry )); 210 210 //ss->setRelCoorSoft( ss->getAbsCoor().x, terrain->getHeight( terrx, terry )-offsety, ss->getAbsCoor().z ); 211 211 212 212 float dist = (dynamic_cast<Playable*>(*it)->getAbsCoor() - big_left).len(); 213 213 if( (dynamic_cast<Playable*>(*it)->getAbsCoor() - big_left).len() > rBig && … … 215 215 (dynamic_cast<Playable*>(*it)->getAbsCoor() - small_left).len() > rSmall && 216 216 (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) 218 219 { 219 220 PRINTF(0)("KILLLLLLLL\n"); … … 221 222 if((*it)->isA(CL_SPACE_SHIP)) 222 223 { 223 dynamic_cast<SpaceShip*>(*it)->networkCollisionList.push_back(1163692 20.33434f);224 dynamic_cast<SpaceShip*>(*it)->doCollideNetwork(11636922 0.33434f);224 dynamic_cast<SpaceShip*>(*it)->networkCollisionList.push_back(1163692); 225 dynamic_cast<SpaceShip*>(*it)->doCollideNetwork(11636922); 225 226 } 226 227 }
Note: See TracChangeset
for help on using the changeset viewer.