| 1070 | } |
| 1071 | |
| 1072 | void RenderManager::rrDestroyCreatureVisualDebug(Creature* curCreature, Tile* curTile) |
| 1073 | { |
| 1074 | std::stringstream tempSS; |
| 1075 | tempSS << "Vision_indicator_" << curCreature->getName() << "_" |
| 1076 | << curTile->getX() << "_" << curTile->getY(); |
| 1077 | if (mSceneManager->hasEntity(tempSS.str())) |
| 1078 | { |
| 1079 | Ogre::Entity* visIndicatorEntity = mSceneManager->getEntity(tempSS.str()); |
| 1080 | Ogre::SceneNode* visIndicatorNode = mSceneManager->getSceneNode(tempSS.str() + "_node"); |
| 1081 | |
| 1082 | visIndicatorNode->detachAllObjects(); |
| 1083 | mSceneManager->destroyEntity(visIndicatorEntity); |
| 1084 | mSceneManager->destroySceneNode(visIndicatorNode); |
| 1085 | } |
| 1086 | } |
| 1087 | |
| 1088 | void RenderManager::rrCreateSeatVisionVisualDebug(int seatId, Tile* tile) |
| 1089 | { |
no test coverage detected