diff options
author | Colin Noga <Tempus@chronometry.ca> | 2013-04-19 10:30:18 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2013-04-19 10:30:18 -0500 |
commit | d0cfae71b2b59edc58eb65acd9fc403c0b6c094d (patch) | |
tree | 40abf294bb3c8ba093978783ef8453308e13f1dd /src | |
parent | 3abe5505fc51f1b397d4659c9e82faf19bc01629 (diff) | |
download | kamek-d0cfae71b2b59edc58eb65acd9fc403c0b6c094d.tar.gz kamek-d0cfae71b2b59edc58eb65acd9fc403c0b6c094d.zip |
Minor fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/makeYourOwnModelSprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/makeYourOwnModelSprite.cpp b/src/makeYourOwnModelSprite.cpp index ccdf46d..1491053 100644 --- a/src/makeYourOwnModelSprite.cpp +++ b/src/makeYourOwnModelSprite.cpp @@ -537,10 +537,10 @@ int dMakeYourOwn::onExecute() { } int dMakeYourOwn::onDraw() { - if (pos.z == -6500.0) { - matrix.translation(pos.x, pos.y, pos.z + this->zOrder); } // Set where to draw the model : -5500.0 is the official behind layer 2, while 5500.0 is in front of layer 0. + if ((this->settings >> 16) & 0xF != 0) { + matrix.translation(pos.x, pos.y, this->zOrder); } // Set where to draw the model : -5500.0 is the official behind layer 2, while 5500.0 is in front of layer 0. else { - matrix.translation(pos.x, pos.y, pos.z); } // Set where to draw the model : -5500.0 is the official behind layer 2, while 5500.0 is in front of layer 0. + matrix.translation(pos.x, pos.y, pos.z -6500.0); } // Set where to draw the model : -5500.0 is the official behind layer 2, while 5500.0 is in front of layer 0. matrix.applyRotationYXZ(&rot.x, &rot.y, &rot.z); // Set how to rotate the drawn model |