diff options
author | Tobia Tesan | 2013-07-07 23:11:32 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-01 00:02:57 +0200 |
commit | 8bed134ad6a155ec6b35e3cba4a212e016bf3c90 (patch) | |
tree | 68c5b82b0ad8b12184f6229d70394717d7bdcb21 /engines/wintermute | |
parent | b788ae7f382ca05cecdf0eba5bfb176279299416 (diff) | |
download | scummvm-rg350-8bed134ad6a155ec6b35e3cba4a212e016bf3c90.tar.gz scummvm-rg350-8bed134ad6a155ec6b35e3cba4a212e016bf3c90.tar.bz2 scummvm-rg350-8bed134ad6a155ec6b35e3cba4a212e016bf3c90.zip |
WINTERMUTE: Force angle normalization
This fixes the issues in J.U.L.I.A.
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/base/base_sub_frame.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/wintermute/base/base_sub_frame.cpp b/engines/wintermute/base/base_sub_frame.cpp index b51b723f61..eb1c859c2f 100644 --- a/engines/wintermute/base/base_sub_frame.cpp +++ b/engines/wintermute/base/base_sub_frame.cpp @@ -235,6 +235,12 @@ 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 += 360.0f; + } + rotate = fmod(rotate, 360.0f); + if (!_surface) { return STATUS_OK; } |