| 889 | } |
| 890 | |
| 891 | void RenderManager::rrDestroyWeapon(Creature* curCreature, const Weapon* curWeapon, const std::string& hand) |
| 892 | { |
| 893 | std::string weaponEntityName = curWeapon->getOgreNamePrefix() + hand + "_" + curCreature->getName(); |
| 894 | if(mSceneManager->hasEntity(weaponEntityName)) |
| 895 | { |
| 896 | Ogre::Entity* weaponEntity = mSceneManager->getEntity(weaponEntityName); |
| 897 | weaponEntity->detachFromParent(); |
| 898 | mSceneManager->destroyEntity(weaponEntity); |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | void RenderManager::rrCreateMapLight(MapLight* curMapLight, bool displayVisual) |
| 903 | { |
no test coverage detected