summaryrefslogtreecommitdiff
path: root/src/koopatlas/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas/map.cpp')
-rw-r--r--src/koopatlas/map.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp
index d78aad4..0334926 100644
--- a/src/koopatlas/map.cpp
+++ b/src/koopatlas/map.cpp
@@ -352,11 +352,13 @@ void dWMMap_c::renderer_c::renderDoodadLayer(dKPLayer_s *layer) {
Mtx doodadMtx;
MTXTransApply(renderMtx, doodadMtx, effectiveX + halfW, -effectiveY - halfH, 0);
-
- Mtx rotMtx;
- MTXRotDeg(rotMtx, 'z', -effectiveAngle);
- MTXConcat(doodadMtx, rotMtx, doodadMtx);
+ if (effectiveAngle != 0) {
+ Mtx rotMtx;
+ MTXRotDeg(rotMtx, 'z', -effectiveAngle);
+
+ MTXConcat(doodadMtx, rotMtx, doodadMtx);
+ }
loadCamera(doodadMtx);
loadTexture(doodad->texObj);