Changeset 5881 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/player.cc
- Timestamp:
- Dec 3, 2005, 1:26:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.