aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/base/base_sub_frame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/base/base_sub_frame.cpp b/engines/wintermute/base/base_sub_frame.cpp
index 0028de1908..6f79d7f3a7 100644
--- a/engines/wintermute/base/base_sub_frame.cpp
+++ b/engines/wintermute/base/base_sub_frame.cpp
@@ -237,11 +237,11 @@ const char* BaseSubFrame::getSurfaceFilename() {
//////////////////////////////////////////////////////////////////////
bool BaseSubFrame::draw(int x, int y, BaseObject *registerOwner, float zoomX, float zoomY, bool precise, uint32 alpha, float rotate, TSpriteBlendMode blendMode) {
- while (rotate < 0) {
+ rotate = fmod(rotate, 360.0f);
+ if (rotate < 0) {
rotate += 360.0f;
}
- rotate = fmod(rotate, 360.0f);
-
+
if (!_surface) {
return STATUS_OK;
}