From 26c37051526e5e6c45dd5bf46cb9e3a06c065164 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 12 Dec 2010 18:55:27 +0000 Subject: MOHAWK: Silence warnings svn-id: r54884 --- engines/mohawk/myst_stacks/myst.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') 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; } -- cgit v1.2.3