forked from mirror/openmw-tes3mp
constness fixes
This commit is contained in:
parent
19c3b5516d
commit
08f6d04960
5 changed files with 8 additions and 8 deletions
|
@ -104,7 +104,7 @@ namespace MWBase
|
|||
|
||||
virtual void getTriangleBatchCount(unsigned int &triangles, unsigned int &batches) = 0;
|
||||
|
||||
virtual MWWorld::Fallback *getFallback () = 0;
|
||||
virtual const MWWorld::Fallback *getFallback () const = 0;
|
||||
|
||||
virtual MWWorld::Player& getPlayer() = 0;
|
||||
|
||||
|
@ -139,7 +139,7 @@ namespace MWBase
|
|||
|
||||
virtual char getGlobalVariableType (const std::string& name) const = 0;
|
||||
///< Return ' ', if there is no global variable with this name.
|
||||
|
||||
|
||||
virtual std::vector<std::string> getGlobals () const = 0;
|
||||
|
||||
virtual std::string getCurrentCellName() const = 0;
|
||||
|
@ -296,7 +296,7 @@ namespace MWBase
|
|||
virtual void changeVanityModeScale(float factor) = 0;
|
||||
|
||||
virtual void renderPlayer() = 0;
|
||||
|
||||
|
||||
virtual void setupExternalRendering (MWRender::ExternalRendering& rendering) = 0;
|
||||
|
||||
virtual int canRest() = 0;
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace
|
|||
const ESM::Class::Specialization mSpecializations[3]={ESM::Class::Combat, ESM::Class::Magic, ESM::Class::Stealth}; // The specialization for each answer
|
||||
Step sGenerateClassSteps(int number) {
|
||||
number++;
|
||||
MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
const MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
Step step = {fallback->getFallbackString("Question_"+boost::lexical_cast<std::string>(number)+"_Question"),
|
||||
{fallback->getFallbackString("Question_"+boost::lexical_cast<std::string>(number)+"_AnswerOne"),
|
||||
fallback->getFallbackString("Question_"+boost::lexical_cast<std::string>(number)+"_AnswerTwo"),
|
||||
|
|
|
@ -268,7 +268,7 @@ void SkyManager::create()
|
|||
mLightning->setVisible (false);
|
||||
mLightning->setDiffuseColour (ColourValue(3,3,3));
|
||||
|
||||
MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
const MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
mSecunda = new Moon("secunda_texture", /*0.5*/fallback->getFallbackFloat("Moons_Secunda_Size")/100, Vector3(-0.4, 0.4, 0.5), mRootNode, "openmw_moon");
|
||||
mSecunda->setType(Moon::Type_Secunda);
|
||||
mSecunda->setRenderQueue(RQG_SkiesEarly+4);
|
||||
|
@ -371,7 +371,7 @@ int SkyManager::getSecundaPhase() const
|
|||
void SkyManager::update(float duration)
|
||||
{
|
||||
if (!mEnabled) return;
|
||||
MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
const MWWorld::Fallback* fallback=MWBase::Environment::get().getWorld()->getFallback();
|
||||
mCamera->getParentSceneNode ()->needUpdate ();
|
||||
mRootNode->setPosition(mCamera->getDerivedPosition());
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ namespace MWWorld
|
|||
return 0;
|
||||
}
|
||||
|
||||
MWWorld::Fallback *World::getFallback ()
|
||||
const MWWorld::Fallback *World::getFallback() const
|
||||
{
|
||||
return &mFallback;
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ namespace MWWorld
|
|||
|
||||
virtual void getTriangleBatchCount(unsigned int &triangles, unsigned int &batches);
|
||||
|
||||
virtual Fallback *getFallback ();
|
||||
virtual const Fallback *getFallback() const;
|
||||
|
||||
virtual Player& getPlayer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue