mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Better fix for unshield, comments on changes, no more commented out code.
This commit is contained in:
parent
22a5f7198f
commit
5e42c73356
6 changed files with 3 additions and 29 deletions
|
@ -24,7 +24,6 @@ set(LAUNCHER_HEADER
|
||||||
graphicspage.hpp
|
graphicspage.hpp
|
||||||
maindialog.hpp
|
maindialog.hpp
|
||||||
playpage.hpp
|
playpage.hpp
|
||||||
unshieldthread.hpp
|
|
||||||
textslotmsgbox.hpp
|
textslotmsgbox.hpp
|
||||||
|
|
||||||
settings/gamesettings.hpp
|
settings/gamesettings.hpp
|
||||||
|
@ -47,7 +46,6 @@ set(LAUNCHER_HEADER_MOC
|
||||||
graphicspage.hpp
|
graphicspage.hpp
|
||||||
maindialog.hpp
|
maindialog.hpp
|
||||||
playpage.hpp
|
playpage.hpp
|
||||||
unshieldthread.hpp
|
|
||||||
textslotmsgbox.hpp
|
textslotmsgbox.hpp
|
||||||
|
|
||||||
utils/checkablemessagebox.hpp
|
utils/checkablemessagebox.hpp
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
#include <libunshield.h>
|
#include <libunshield.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
class UnshieldThread : public QThread
|
class UnshieldThread : public QThread
|
||||||
{
|
{
|
||||||
|
@ -34,9 +32,7 @@ class UnshieldThread : public QThread
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void extract_cab(const boost::filesystem::path& cab, const boost::filesystem::path& output_dir, bool extract_ini = false);
|
void extract_cab(const boost::filesystem::path& cab, const boost::filesystem::path& output_dir, bool extract_ini = false);
|
||||||
#ifndef _WIN32
|
|
||||||
bool extract_file(Unshield* unshield, boost::filesystem::path output_dir, const char* prefix, int index);
|
bool extract_file(Unshield* unshield, boost::filesystem::path output_dir, const char* prefix, int index);
|
||||||
#endif
|
|
||||||
|
|
||||||
boost::filesystem::path mMorrowindPath;
|
boost::filesystem::path mMorrowindPath;
|
||||||
boost::filesystem::path mTribunalPath;
|
boost::filesystem::path mTribunalPath;
|
||||||
|
|
|
@ -6,12 +6,6 @@
|
||||||
#include "ref.hpp"
|
#include "ref.hpp"
|
||||||
#include "cell.hpp"
|
#include "cell.hpp"
|
||||||
|
|
||||||
/*
|
|
||||||
CSMWorld::RefCollection::RefCollection (Collection<Cell>& cells)
|
|
||||||
: mCells (cells), mNextId (0)
|
|
||||||
{}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool base)
|
void CSMWorld::RefCollection::load (ESM::ESMReader& reader, int cellIndex, bool base)
|
||||||
{
|
{
|
||||||
Record<Cell> cell = mCells.getRecord (cellIndex);
|
Record<Cell> cell = mCells.getRecord (cellIndex);
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace CSMWorld
|
||||||
int mNextId;
|
int mNextId;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// MSVC needs the constructor for a class inheriting a template to be defined in header
|
||||||
RefCollection (Collection<Cell>& cells)
|
RefCollection (Collection<Cell>& cells)
|
||||||
: mCells (cells), mNextId (0)
|
: mCells (cells), mNextId (0)
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -6,15 +6,6 @@
|
||||||
namespace OEngine {
|
namespace OEngine {
|
||||||
namespace Render {
|
namespace Render {
|
||||||
|
|
||||||
/*
|
|
||||||
LightFunction::LightFunction(LightType type)
|
|
||||||
: ControllerFunction<Ogre::Real>(true)
|
|
||||||
, mType(type)
|
|
||||||
, mPhase(Ogre::Math::RangeRandom(-500.0f, +500.0f))
|
|
||||||
, mDirection(1.0f)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
Ogre::Real LightFunction::pulseAmplitude(Ogre::Real time)
|
Ogre::Real LightFunction::pulseAmplitude(Ogre::Real time)
|
||||||
{
|
{
|
||||||
return std::sin(time);
|
return std::sin(time);
|
||||||
|
@ -97,13 +88,6 @@ Ogre::Real LightFunction::calculate(Ogre::Real value)
|
||||||
return brightness;
|
return brightness;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
LightValue::LightValue(Ogre::Light *light, const Ogre::ColourValue &color)
|
|
||||||
: mTarget(light)
|
|
||||||
, mColor(color)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
Ogre::Real LightValue::getValue() const
|
Ogre::Real LightValue::getValue() const
|
||||||
{
|
{
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
|
|
@ -31,6 +31,7 @@ namespace Render {
|
||||||
static Ogre::Real flickerFrequency(Ogre::Real phase);
|
static Ogre::Real flickerFrequency(Ogre::Real phase);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// MSVC needs the constructor for a class inheriting a template to be defined in header
|
||||||
LightFunction(LightType type)
|
LightFunction(LightType type)
|
||||||
: ControllerFunction<Ogre::Real>(true)
|
: ControllerFunction<Ogre::Real>(true)
|
||||||
, mType(type)
|
, mType(type)
|
||||||
|
@ -47,6 +48,7 @@ namespace Render {
|
||||||
Ogre::ColourValue mColor;
|
Ogre::ColourValue mColor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// MSVC needs the constructor for a class inheriting a template to be defined in header
|
||||||
LightValue(Ogre::Light *light, const Ogre::ColourValue &color)
|
LightValue(Ogre::Light *light, const Ogre::ColourValue &color)
|
||||||
: mTarget(light)
|
: mTarget(light)
|
||||||
, mColor(color)
|
, mColor(color)
|
||||||
|
|
Loading…
Reference in a new issue