forked from teamnwah/openmw-tes3coop
Some fixes for building on FreeBSD
This commit is contained in:
parent
07a4c0bf73
commit
0659687bfb
13 changed files with 18 additions and 8 deletions
|
@ -121,7 +121,7 @@ public:
|
||||||
{
|
{
|
||||||
mContext->mPlayer.mObject.mCreatureStats.mLevel = npc.mNpdt52.mLevel;
|
mContext->mPlayer.mObject.mCreatureStats.mLevel = npc.mNpdt52.mLevel;
|
||||||
mContext->mPlayerBase = npc;
|
mContext->mPlayerBase = npc;
|
||||||
std::map<const int, float> empty;
|
std::map<int, float> empty;
|
||||||
// FIXME: player start spells and birthsign spells aren't listed here,
|
// FIXME: player start spells and birthsign spells aren't listed here,
|
||||||
// need to fix openmw to account for this
|
// need to fix openmw to account for this
|
||||||
for (std::vector<std::string>::const_iterator it = npc.mSpells.mList.begin(); it != npc.mSpells.mList.end(); ++it)
|
for (std::vector<std::string>::const_iterator it = npc.mSpells.mList.begin(); it != npc.mSpells.mList.end(); ++it)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "convertinventory.hpp"
|
#include "convertinventory.hpp"
|
||||||
|
|
||||||
#include <components/misc/stringops.hpp>
|
#include <components/misc/stringops.hpp>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace ESSImport
|
namespace ESSImport
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#ifndef PR_SET_PTRACER
|
#ifndef PR_SET_PTRACER
|
||||||
#define PR_SET_PTRACER 0x59616d61
|
#define PR_SET_PTRACER 0x59616d61
|
||||||
#endif
|
#endif
|
||||||
#elif defined (__APPLE__)
|
#elif defined (__APPLE__) || defined (__FreeBSD__)
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace MWMechanics
|
||||||
{
|
{
|
||||||
if (mSpells.find (spell)==mSpells.end())
|
if (mSpells.find (spell)==mSpells.end())
|
||||||
{
|
{
|
||||||
std::map<const int, float> random;
|
std::map<int, float> random;
|
||||||
|
|
||||||
// Determine the random magnitudes (unless this is a castable spell, in which case
|
// Determine the random magnitudes (unless this is a castable spell, in which case
|
||||||
// they will be determined when the spell is cast)
|
// they will be determined when the spell is cast)
|
||||||
|
|
|
@ -33,7 +33,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
typedef const ESM::Spell* SpellKey;
|
typedef const ESM::Spell* SpellKey;
|
||||||
|
|
||||||
typedef std::map<SpellKey, std::map<const int, float> > TContainer; // ID, <effect index, normalised random magnitude>
|
typedef std::map<SpellKey, std::map<int, float> > TContainer; // ID, <effect index, normalised random magnitude>
|
||||||
typedef TContainer::const_iterator TIterator;
|
typedef TContainer::const_iterator TIterator;
|
||||||
|
|
||||||
struct CorprusStats
|
struct CorprusStats
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include <osg/observer_ptr>
|
||||||
#include <osg/ref_ptr>
|
#include <osg/ref_ptr>
|
||||||
#include <osg/PositionAttitudeTransform>
|
#include <osg/PositionAttitudeTransform>
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include "../mwscript/locals.hpp"
|
#include "../mwscript/locals.hpp"
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include <osg/Vec3f>
|
#include <osg/Vec3f>
|
||||||
|
|
||||||
namespace SceneUtil
|
namespace SceneUtil
|
||||||
|
|
|
@ -108,7 +108,11 @@ namespace MWWorld
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#ifdef HAVE_UNORDERED_MAP
|
||||||
|
typedef std::unordered_map<std::string, ContentLoader*> LoadersContainer;
|
||||||
|
#else
|
||||||
typedef std::tr1::unordered_map<std::string, ContentLoader*> LoadersContainer;
|
typedef std::tr1::unordered_map<std::string, ContentLoader*> LoadersContainer;
|
||||||
|
#endif
|
||||||
LoadersContainer mLoaders;
|
LoadersContainer mLoaders;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace ESM
|
||||||
{
|
{
|
||||||
std::string id = esm.getHString();
|
std::string id = esm.getHString();
|
||||||
|
|
||||||
std::map<const int, float> random;
|
std::map<int, float> random;
|
||||||
while (esm.isNextSub("INDX"))
|
while (esm.isNextSub("INDX"))
|
||||||
{
|
{
|
||||||
int index;
|
int index;
|
||||||
|
@ -73,8 +73,8 @@ namespace ESM
|
||||||
{
|
{
|
||||||
esm.writeHNString("SPEL", it->first);
|
esm.writeHNString("SPEL", it->first);
|
||||||
|
|
||||||
const std::map<const int, float>& random = it->second;
|
const std::map<int, float>& random = it->second;
|
||||||
for (std::map<const int, float>::const_iterator rIt = random.begin(); rIt != random.end(); ++rIt)
|
for (std::map<int, float>::const_iterator rIt = random.begin(); rIt != random.end(); ++rIt)
|
||||||
{
|
{
|
||||||
esm.writeHNT("INDX", rIt->first);
|
esm.writeHNT("INDX", rIt->first);
|
||||||
esm.writeHNT("RAND", rIt->second);
|
esm.writeHNT("RAND", rIt->second);
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace ESM
|
||||||
float mMagnitude;
|
float mMagnitude;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<std::string, std::map<const int, float> > TContainer;
|
typedef std::map<std::string, std::map<int, float> > TContainer;
|
||||||
TContainer mSpells;
|
TContainer mSpells;
|
||||||
|
|
||||||
std::map<std::string, std::vector<PermanentSpellEffectInfo> > mPermanentSpellEffects;
|
std::map<std::string, std::vector<PermanentSpellEffectInfo> > mPermanentSpellEffects;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "bulletshape.hpp"
|
#include "bulletshape.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <BulletCollision/CollisionShapes/btBoxShape.h>
|
#include <BulletCollision/CollisionShapes/btBoxShape.h>
|
||||||
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>
|
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
#include <osg/observer_ptr>
|
||||||
#include <osg/NodeVisitor>
|
#include <osg/NodeVisitor>
|
||||||
|
|
||||||
#include <components/sceneutil/lightmanager.hpp>
|
#include <components/sceneutil/lightmanager.hpp>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "lightutil.hpp"
|
#include "lightutil.hpp"
|
||||||
|
|
||||||
|
#include <osg/observer_ptr>
|
||||||
#include <osg/Light>
|
#include <osg/Light>
|
||||||
#include <osg/Group>
|
#include <osg/Group>
|
||||||
#include <osg/ComputeBoundsVisitor>
|
#include <osg/ComputeBoundsVisitor>
|
||||||
|
|
Loading…
Reference in a new issue