Changeset 6568 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 18, 2006, 3:21:47 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6547 r6568 55 55 56 56 if (this->currentPlayer != NULL) 57 this-> currentPlayer->weaponConfigChanged();57 this->weaponConfigChanged(); 58 58 } 59 59 … … 63 63 64 64 if (this->currentPlayer != NULL) 65 this-> currentPlayer->weaponConfigChanged();65 this->weaponConfigChanged(); 66 66 } 67 67 … … 70 70 this->weaponMan->nextWeaponConfig(); 71 71 if (this->currentPlayer != NULL) 72 this-> currentPlayer->weaponConfigChanged();72 this->weaponConfigChanged(); 73 73 } 74 74 … … 77 77 this->weaponMan->previousWeaponConfig(); 78 78 if (this->currentPlayer != NULL) 79 this->currentPlayer->weaponConfigChanged(); 80 } 81 79 this->weaponConfigChanged(); 80 } 81 82 void Playable::weaponConfigChanged() 83 { 84 this->currentPlayer->weaponConfigChanged(); 85 } 82 86 83 87 /** -
trunk/src/world_entities/playable.h
r6547 r6568 39 39 40 40 inline WeaponManager* getWeaponManager() const { return this->weaponMan; }; 41 void weaponConfigChanged(); 42 41 43 42 44 bool subscribePlayer(Player* player); -
trunk/src/world_entities/weapons/weapon_manager.cc
r6561 r6568 385 385 tickWeapon->toList(this->parent->getOMListNumber()); 386 386 this->currentSlotConfig[i].position.activateNode(); 387 if (this->parent->isA(CL_PLAYABLE)) 388 { 389 dynamic_cast<Playable*>(this->parent)->weaponConfigChanged(); 390 } 387 391 } 388 392 else
Note: See TracChangeset
for help on using the changeset viewer.