summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-04-17 12:17:02 -0500
committerColin Noga <Tempus@chronometry.ca>2013-04-17 12:17:02 -0500
commit737948128161916ffa9e5422d910d983179f1e7f (patch)
tree0380c7a76ebfb697ba66384011f0bd55371125be
parent3b4ab96f75add8edb63186fb4acdd559f36a9e1f (diff)
downloadkamek-737948128161916ffa9e5422d910d983179f1e7f.tar.gz
kamek-737948128161916ffa9e5422d910d983179f1e7f.zip
changed a small model fix
Diffstat (limited to '')
-rw-r--r--src/makeYourOwnModelSprite.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makeYourOwnModelSprite.cpp b/src/makeYourOwnModelSprite.cpp
index c424c7f..f08be4c 100644
--- a/src/makeYourOwnModelSprite.cpp
+++ b/src/makeYourOwnModelSprite.cpp
@@ -537,7 +537,11 @@ int dMakeYourOwn::onExecute() {
}
int dMakeYourOwn::onDraw() {
- 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.
+ 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.
+ 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.applyRotationYXZ(&rot.x, &rot.y, &rot.z); // Set how to rotate the drawn model
bodyModel.setDrawMatrix(matrix); // Apply matrix