summaryrefslogtreecommitdiff
path: root/src/makeYourOwnModelSprite.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-18 00:50:48 +0200
committerTreeki <treeki@gmail.com>2013-04-18 00:50:48 +0200
commit3c7beae513ce1d9ff226415e14f834645b1afeb4 (patch)
treef6e47ee0039a06ee72b7c9f7975dca70390ba7a6 /src/makeYourOwnModelSprite.cpp
parent67a38c9e11d11e4e5113e25665bb902026a6b7a6 (diff)
parente7b3cffc51cd6dfe6f9dc9e06aa44fbec56e0fd9 (diff)
downloadkamek-3c7beae513ce1d9ff226415e14f834645b1afeb4.tar.gz
kamek-3c7beae513ce1d9ff226415e14f834645b1afeb4.zip
Merge branch 'level-select' of tsn:Kamek into level-select
Diffstat (limited to 'src/makeYourOwnModelSprite.cpp')
-rw-r--r--src/makeYourOwnModelSprite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makeYourOwnModelSprite.cpp b/src/makeYourOwnModelSprite.cpp
index f08be4c..ccdf46d 100644
--- a/src/makeYourOwnModelSprite.cpp
+++ b/src/makeYourOwnModelSprite.cpp
@@ -537,11 +537,11 @@ int dMakeYourOwn::onExecute() {
}
int dMakeYourOwn::onDraw() {
- if pos.z == -6500.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