Better fix for unshield, comments on changes, no more commented out code.

actorid
Alexander "Ace" Olofsson 11 years ago
parent 22a5f7198f
commit 5e42c73356

@ -24,7 +24,6 @@ set(LAUNCHER_HEADER
graphicspage.hpp
maindialog.hpp
playpage.hpp
unshieldthread.hpp
textslotmsgbox.hpp
settings/gamesettings.hpp
@ -47,7 +46,6 @@ set(LAUNCHER_HEADER_MOC
graphicspage.hpp
maindialog.hpp
playpage.hpp
unshieldthread.hpp
textslotmsgbox.hpp
utils/checkablemessagebox.hpp

@ -5,9 +5,7 @@
#include <boost/filesystem.hpp>
#ifndef _WIN32
#include <libunshield.h>
#endif
class UnshieldThread : public QThread
{
@ -34,9 +32,7 @@ class UnshieldThread : public QThread
private:
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);
#endif
boost::filesystem::path mMorrowindPath;
boost::filesystem::path mTribunalPath;

@ -6,12 +6,6 @@
#include "ref.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)
{
Record<Cell> cell = mCells.getRecord (cellIndex);

@ -16,7 +16,7 @@ namespace CSMWorld
int mNextId;
public:
// MSVC needs the constructor for a class inheriting a template to be defined in header
RefCollection (Collection<Cell>& cells)
: mCells (cells), mNextId (0)
{}

@ -6,15 +6,6 @@
namespace OEngine {
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)
{
return std::sin(time);
@ -97,13 +88,6 @@ Ogre::Real LightFunction::calculate(Ogre::Real value)
return brightness;
}
/*
LightValue::LightValue(Ogre::Light *light, const Ogre::ColourValue &color)
: mTarget(light)
, mColor(color)
{
}
*/
Ogre::Real LightValue::getValue() const
{
return 0.0f;

@ -31,6 +31,7 @@ namespace Render {
static Ogre::Real flickerFrequency(Ogre::Real phase);
public:
// MSVC needs the constructor for a class inheriting a template to be defined in header
LightFunction(LightType type)
: ControllerFunction<Ogre::Real>(true)
, mType(type)
@ -47,6 +48,7 @@ namespace Render {
Ogre::ColourValue mColor;
public:
// MSVC needs the constructor for a class inheriting a template to be defined in header
LightValue(Ogre::Light *light, const Ogre::ColourValue &color)
: mTarget(light)
, mColor(color)

Loading…
Cancel
Save