Windows compatibility patch

actorid
Nicolay Korslund 15 years ago
parent 522a5bbaf6
commit 10c1d78c38

1
.gitignore vendored

@ -10,3 +10,4 @@ Ogre.log
ogre.cfg
build
plugins.cfg
openmw.cfg

@ -156,7 +156,7 @@ void NIFFile::parse()
fail("Unknown record type " + rec.toString());
assert(r != NULL);
assert(r->recType != RC_NONE);
assert(r->recType != RC_MISSING);
r->recName = rec;
records[i] = r;
r->read(this);

@ -139,7 +139,7 @@ struct NiCamera : Node
struct Camera
{
// Camera frustrum
float left, right, top, bottom, near, far;
float left, right, top, bottom, nearDist, farDist;
// Viewport
float vleft, vright, vtop, vbottom;

@ -31,7 +31,7 @@ class NIFFile;
enum RecordType
{
RC_NONE = 0,
RC_MISSING = 0,
RC_NiNode,
RC_NiTriShape,
RC_NiRotatingParticles,
@ -89,7 +89,7 @@ struct Record
int recType;
SString recName;
Record() : recType(RC_NONE) {}
Record() : recType(RC_MISSING) {}
/// Parses the record from file
virtual void read(NIFFile *nif) = 0;

@ -420,7 +420,7 @@ static void handleNiTriShape(Mesh *mesh, NiTriShape *shape, int flags)
// Alpha modifiers
int alphaFlags = -1;
ubyte alphaTest;
ubyte alphaTest = 0;
if(a)
{
alphaFlags = a->flags;

Loading…
Cancel
Save