From e1845735689df7e66d27bd88a746b164fdadf661 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 11 Sep 2013 17:57:18 +0300 Subject: FULLPIPE: Fix compilation with MSVC and add a FIXME --- engines/fullpipe/fullpipe.h | 4 ++-- engines/fullpipe/motion.cpp | 2 +- engines/fullpipe/scene.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/fullpipe/fullpipe.h b/engines/fullpipe/fullpipe.h index 5d9bdcc045..f688151267 100644 --- a/engines/fullpipe/fullpipe.h +++ b/engines/fullpipe/fullpipe.h @@ -50,12 +50,12 @@ class CGameVar; class CInputController; class CInventory2; struct CursorInfo; -class EntranceInfo; +struct EntranceInfo; class ExCommand; class GameProject; class GameObject; class GlobalMessageQueueList; -class MessageHandler; +struct MessageHandler; struct MovTable; class NGIArchive; class Scene; diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 41265dcd8a..514dde5185 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -204,7 +204,7 @@ void CReactParallel::createRegion() { for (int i = 0; i < 4; i++) _points[i] = new Common::Point; - double at = atan2(_x1 - _x2, _y1 - _y2) + 1.570796; + double at = atan2((double)(_x1 - _x2), (double)(_y1 - _y2)) + 1.570796; double sn = sin(at); double cs = cos(at); diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index 18d6a888b7..310db18f25 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -596,7 +596,7 @@ void Scene::drawContent(int minPri, int maxPri, bool drawBg) { v25++; if (v25 >= _bigPictureArray2Count) { - if (!((PictureObject *)_picObjList[0])->_flags & 0x20) + if (!((PictureObject *)_picObjList[0])->_flags & 0x20) // FIXME: looks like a typo break; v25 = 0; } -- cgit v1.2.3