1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 05:39:43 +00:00

removed some unused variables

This commit is contained in:
Marc Zinnschlag 2012-08-17 15:37:14 +02:00
parent 7303d595dd
commit 1da56e2832
3 changed files with 2 additions and 9 deletions

View file

@ -119,7 +119,6 @@ namespace MWRender
void Player::update(float duration) void Player::update(float duration)
{ {
Ogre::Vector3 pos = mPlayerNode->getPosition();
if (!mVanity.enabled) { if (!mVanity.enabled) {
++mUpdates; ++mUpdates;
mTimeIdle += duration; mTimeIdle += duration;

View file

@ -189,12 +189,6 @@ namespace MWWorld
iter!=actors.end(); ++iter) iter!=actors.end(); ++iter)
{ {
//dirty stuff to get the camera orientation. Must be changed! //dirty stuff to get the camera orientation. Must be changed!
Ogre::Quaternion orient =
mRender.getScene()->getSceneNode(iter->first)->getOrientation();
float yaw = orient.getRoll().valueDegrees();
float pitch = 0.f;
if (iter->first == "player") { if (iter->first == "player") {
playerphysics->ps.viewangles.x = playerphysics->ps.viewangles.x =
Ogre::Radian(mPlayerData.pitch).valueDegrees(); Ogre::Radian(mPlayerData.pitch).valueDegrees();

View file

@ -471,7 +471,7 @@ static Ogre::String getMaterial(const NiTriShape *shape, const Ogre::String &nam
float glossiness = 0.0f; float glossiness = 0.0f;
float alpha = 1.0f; float alpha = 1.0f;
int alphaFlags = -1; int alphaFlags = -1;
ubyte alphaTest = 0; // ubyte alphaTest = 0;
Ogre::String texName; Ogre::String texName;
bool vertexColour = (shape->data->colors.size() != 0); bool vertexColour = (shape->data->colors.size() != 0);
@ -523,7 +523,7 @@ static Ogre::String getMaterial(const NiTriShape *shape, const Ogre::String &nam
if (a) if (a)
{ {
alphaFlags = a->flags; alphaFlags = a->flags;
alphaTest = a->data.threshold; // alphaTest = a->data.threshold;
} }
// Material // Material