diff options
author | Colin Noga <Tempus@chronometry.ca> | 2013-04-17 17:50:18 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2013-04-17 17:50:18 -0500 |
commit | e7b3cffc51cd6dfe6f9dc9e06aa44fbec56e0fd9 (patch) | |
tree | 827acb9a9239088032034c5e0c169bafa2811671 /src | |
parent | 737948128161916ffa9e5422d910d983179f1e7f (diff) | |
download | kamek-e7b3cffc51cd6dfe6f9dc9e06aa44fbec56e0fd9.tar.gz kamek-e7b3cffc51cd6dfe6f9dc9e06aa44fbec56e0fd9.zip |
Well, fuck me Treeki, Iza sorriez
Diffstat (limited to 'src')
-rw-r--r-- | src/makeYourOwnModelSprite.cpp | 4 |
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 |