mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Fixed rotation speed
This commit is contained in:
parent
972481f63f
commit
763308868d
@ -251,8 +251,6 @@ namespace MWBase
|
||||
virtual void changePointer (const std::string& name) = 0;
|
||||
|
||||
virtual const Translation::Storage& getTranslationDataStorage() const = 0;
|
||||
|
||||
virtual int getFPS() const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1200,8 +1200,3 @@ void WindowManager::frameStarted (float dt)
|
||||
{
|
||||
mInventoryWindow->doRenderUpdate ();
|
||||
}
|
||||
|
||||
int WindowManager::getFPS() const
|
||||
{
|
||||
return mFPS;
|
||||
}
|
||||
|
@ -248,8 +248,6 @@ namespace MWGui
|
||||
|
||||
void onSoulgemDialogButtonPressed (int button);
|
||||
|
||||
virtual int getFPS() const;
|
||||
|
||||
private:
|
||||
OEngine::GUI::MyGUIManager *mGuiManager;
|
||||
OEngine::Render::OgreRenderer *mRendering;
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include <components/interpreter/opcodes.hpp>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
|
||||
#include "../mwworld/class.hpp"
|
||||
#include "../mwworld/player.hpp"
|
||||
@ -554,7 +553,7 @@ namespace MWScript
|
||||
|
||||
std::string axis = runtime.getStringLiteral (runtime[0].mInteger);
|
||||
runtime.pop();
|
||||
Interpreter::Type_Float rotation = (runtime[0].mFloat/MWBase::Environment::get().getWindowManager()->getFPS());
|
||||
Interpreter::Type_Float rotation = (runtime[0].mFloat*MWBase::Environment::get().getFrameDuration());
|
||||
runtime.pop();
|
||||
|
||||
float *objRot = ptr.getRefData().getPosition().rot;
|
||||
@ -597,7 +596,7 @@ namespace MWScript
|
||||
|
||||
std::string axis = runtime.getStringLiteral (runtime[0].mInteger);
|
||||
runtime.pop();
|
||||
Interpreter::Type_Float rotation = (runtime[0].mFloat/MWBase::Environment::get().getWindowManager()->getFPS());
|
||||
Interpreter::Type_Float rotation = (runtime[0].mFloat*MWBase::Environment::get().getFrameDuration());
|
||||
runtime.pop();
|
||||
|
||||
float *objRot = ptr.getRefData().getPosition().rot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user