Changeset 5881 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities
- Timestamp:
- Dec 3, 2005, 1:26:03 AM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.cc
r5877 r5881 15 15 16 16 #include "weapons/weapon_manager.h" 17 17 18 #include "playable.h" 18 19 #include "event_handler.h" … … 27 28 Playable::~Playable() 28 29 { 29 30 delete this->weaponMan; 30 31 } 31 32 -
branches/spaceshipcontrol/src/world_entities/player.cc
r5875 r5881 49 49 PRINTF(4)("PLAYER INIT\n"); 50 50 51 this->controllable = NULL; 51 52 } 52 53 … … 55 56 void Player::process(const Event &event) 56 57 { 57 this->controllable->process(event); 58 if (likely(this->controllable != NULL)) 59 this->controllable->process(event); 58 60 } 59 61 … … 62 64 { 63 65 64 this->controllable = controlla ble;66 this->controllable = controllalble; 65 67 this->controllable->subscribeEvents(this); 66 68 -
branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc
r5880 r5881 40 40 SpaceShip::SpaceShip() 41 41 { 42 42 this->init(); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.