aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}