Ticket #9167: cine_inventory_cursor.patch

File cine_inventory_cursor.patch, 1.0 KB (added by SF/dxq, 10 years ago)
  • engines/cine/various.cpp

     
    2727#include "common/endian.h"
    2828#include "common/events.h"
    2929
     30#include "graphics/cursorman.h"
     31
    3032#include "cine/cine.h"
    3133#include "cine/main_loop.h"
    3234#include "cine/object.h"
     
    521523                manageEvents();
    522524                getMouseData(mouseUpdateStatus, &button, &dummyU16, &dummyU16);
    523525        } while (button);
    524 
    525         // TODO: Both Future Wars and Operation Stealth call showMouse, drawMouse or something similar here.
    526526}
    527527
    528528int16 buildObjectListCommand(int16 param) {
     
    624624        if (g_cine->getGameType() == Cine::GType_OS || !(playerCommand != -1 && choiceResultTable[playerCommand] == 2)) {
    625625                if (playerCommand == 2) {
    626626                        getMouseData(mouseUpdateStatus, &dummyU16, &x, &y);
     627                        CursorMan.showMouse(false);
    627628                        processInventory(x, y + 8);
    628629                        playerCommand = -1;
    629630                        commandVar1 = 0;
    630631                        commandBuffer = "";
     632                        CursorMan.showMouse(true);
    631633                }
    632634        }
    633635