aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2010-12-12 18:55:27 +0000
committerMatthew Hoops2010-12-12 18:55:27 +0000
commit26c37051526e5e6c45dd5bf46cb9e3a06c065164 (patch)
tree1690097aaa699b2e8439582159d12f8e86a3d155
parentc6887d0404a6f129f7e02ac24884786ccd5f035b (diff)
downloadscummvm-rg350-26c37051526e5e6c45dd5bf46cb9e3a06c065164.tar.gz
scummvm-rg350-26c37051526e5e6c45dd5bf46cb9e3a06c065164.tar.bz2
scummvm-rg350-26c37051526e5e6c45dd5bf46cb9e3a06c065164.zip
MOHAWK: Silence warnings
svn-id: r54884
-rw-r--r--engines/mohawk/myst_stacks/myst.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/mohawk/myst_stacks/myst.cpp b/engines/mohawk/myst_stacks/myst.cpp
index a1dce9e3ed..acb004e18e 100644
--- a/engines/mohawk/myst_stacks/myst.cpp
+++ b/engines/mohawk/myst_stacks/myst.cpp
@@ -32,7 +32,6 @@
#include "mohawk/video.h"
#include "mohawk/myst_stacks/myst.h"
-#include "graphics/colormasks.h"
#include "gui/message.h"
namespace Mohawk {
@@ -1895,8 +1894,8 @@ Common::Point MystScriptParser_Myst::towerRotationMapComputeCoords(const Common:
// Polar to rect coords
double radians = angle * PI / 180.0;
- end.x = center.x + cos(radians) * 310.0;
- end.y = center.y + sin(radians) * 310.0;
+ end.x = (int16)(center.x + cos(radians) * 310.0);
+ end.y = (int16)(center.y + sin(radians) * 310.0);
return end;
}