diff options
author | Jamieson Christian | 2003-05-26 23:28:59 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-05-26 23:28:59 +0000 |
commit | baf0175a761aa0b68157c3e3695e7a60085681f4 (patch) | |
tree | f0c2b1ca51244cc34bd9f916e9197f8969beb69d /sky | |
parent | a871dfafafa9e81fabf027c07c99b6eab0da3394 (diff) | |
download | scummvm-rg350-baf0175a761aa0b68157c3e3695e7a60085681f4.tar.gz scummvm-rg350-baf0175a761aa0b68157c3e3695e7a60085681f4.tar.bz2 scummvm-rg350-baf0175a761aa0b68157c3e3695e7a60085681f4.zip |
Fixed MSVC warnings
svn-id: r8030
Diffstat (limited to 'sky')
-rw-r--r-- | sky/logic.cpp | 14 | ||||
-rw-r--r-- | sky/text.cpp | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp index 490d5a8dc2..cf5c88f9a3 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -1187,7 +1187,7 @@ bool SkyLogic::fnNormalMouse(uint32 a, uint32 b, uint32 c) { } bool SkyLogic::fnBlankMouse(uint32 a, uint32 b, uint32 c) { - return _skyMouse->fnBlankMouse(); + return (_skyMouse->fnBlankMouse() != 0); } bool SkyLogic::fnCrossMouse(uint32 a, uint32 b, uint32 c) { @@ -1441,7 +1441,7 @@ bool SkyLogic::fnWeWait(uint32 id, uint32 b, uint32 c) { // We have hit another mega // we are going to wait for it to move - _compact->extCompact->waitingFor = id; + _compact->extCompact->waitingFor = (uint16) id; stopAndWait(); return true; // not sure about this } @@ -1486,6 +1486,8 @@ bool SkyLogic::fnCheckRequest(uint32 a, uint32 b, uint32 c) { } bool SkyLogic::fnStartMenu(uint32 firstObject, uint32 b, uint32 c) { + uint i; + // initialise the top menu bar // firstObject is o0 for game menu, k0 for linc @@ -1504,7 +1506,7 @@ bool SkyLogic::fnStartMenu(uint32 firstObject, uint32 b, uint32 c) { // sort the objects and pad with blanks uint32 menuLength = 0; - for (uint i = firstObject; i < firstObject + ARRAYSIZE(_objectList); i++) { + for (i = firstObject; i < firstObject + ARRAYSIZE(_objectList); i++) { if ( _scriptVariables[i] ) _objectList[menuLength++] = _scriptVariables[i]; } @@ -1513,13 +1515,13 @@ bool SkyLogic::fnStartMenu(uint32 firstObject, uint32 b, uint32 c) { // (3) OK, NOW TOP UP THE LIST WITH THE REQUIRED NO. OF BLANK OBJECTS (for min display length 11) uint32 blankID = 51; - for (uint i = menuLength; i < 11; i++) + for (i = menuLength; i < 11; i++) _objectList[i] = blankID++; // (4) KILL ID's OF ALL 20 OBJECTS SO UNWANTED ICONS (SCROLLED OFF) DON'T REMAIN ON SCREEN // (There should be a better way of doing this - only kill id of 12th item when menu has scrolled right) - for (int i = 0; i < ARRAYSIZE(_objectList); i++) { + for (i = 0; i < ARRAYSIZE(_objectList); i++) { if (_objectList[i]) (SkyState::fetchCompact(_objectList[i]))->status = ST_LOGIC; } @@ -1534,7 +1536,7 @@ bool SkyLogic::fnStartMenu(uint32 firstObject, uint32 b, uint32 c) { // (6) AND FINALLY, INITIALISE THE 11 OBJECTS SO THEY APPEAR ON SCREEEN uint16 rollingX = 128 + 28; - for (int i = 0; i < 11; i++) { + for (i = 0; i < 11; i++) { cpt = SkyState::fetchCompact( _objectList[_scriptVariables[SCROLL_OFFSET] + i]); diff --git a/sky/text.cpp b/sky/text.cpp index 8f3c0f47dc..280c0a0ba9 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -366,7 +366,7 @@ lowTextManager_t SkyText::lowTextManager(uint32 textNum, uint16 width, uint16 lo cpt->logic = logicNum; cpt->status = ST_LOGIC | ST_FOREGROUND | ST_RECREATE; - cpt->screen = SkyLogic::_scriptVariables[SCREEN]; + cpt->screen = (uint16) SkyLogic::_scriptVariables[SCREEN]; struct lowTextManager_t ret; ret.textData = _dtData; |