Changeset 5894 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities
- Timestamp:
- Dec 3, 2005, 4:47:34 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/power_ups/laser_power_up.cc
r5750 r5894 79 79 { 80 80 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), entity->getClassName(), location.x, location.y, location.z); 81 if (entity->isA(CL_PLAY ER))81 if (entity->isA(CL_PLAYABLE)) 82 82 State::getWorldEntityList()->remove(this); 83 83 } -
branches/spaceshipcontrol/src/world_entities/power_ups/turret_power_up.cc
r5750 r5894 79 79 { 80 80 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), entity->getClassName(), location.x, location.y, location.z); 81 if (entity->isA(CL_PLAY ER))81 if (entity->isA(CL_PLAYABLE)) 82 82 State::getWorldEntityList()->remove(this); 83 83 } -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r5893 r5894 108 108 109 109 PRINTF(4)("SPACESHIP INIT\n"); 110 travelSpeed = 1 5.0;110 travelSpeed = 100.0; 111 111 bUp = bDown = bLeft = bRight = bAscend = bDescend = false; 112 112 bFire = false; 113 acceleration = 10.0;113 acceleration = 50.0; 114 114 115 115 // GLGuiButton* button = new GLGuiPushButton(); … … 127 127 registerEvent(KeyMapper::PEV_PREVIOUS_WEAPON); 128 128 registerEvent(SDLK_PAGEUP); 129 registerEvent( 129 registerEvent(SDLK_PAGEDOWN); 130 130 131 131 this->getWeaponManager()->setSlotCount(7); … … 276 276 //orthDirection = orthDirection.cross (direction); 277 277 278 if( this->bUp && this->getRelCoor().x < 20)278 if( this->bUp) 279 279 accel += direction; 280 if( this->bDown && this->getRelCoor().x > -5)280 if( this->bDown) 281 281 accel -= direction; 282 282
Note: See TracChangeset
for help on using the changeset viewer.