From 4a454ed763c24f94062be5dd57f43e0a84c1b0a2 Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Tue, 4 Feb 2014 08:32:02 +0700 Subject: ZVISION: New search manager for handle right handle for ZIX-files. --- engines/zvision/cursor_manager.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'engines/zvision/cursor_manager.cpp') diff --git a/engines/zvision/cursor_manager.cpp b/engines/zvision/cursor_manager.cpp index aaf3bb8ee4..c66fa650a8 100644 --- a/engines/zvision/cursor_manager.cpp +++ b/engines/zvision/cursor_manager.cpp @@ -57,15 +57,15 @@ CursorManager::CursorManager(ZVision *engine, const Graphics::PixelFormat *pixel if (_engine->getGameId() == GID_NEMESIS) { Common::String name; name = Common::String::format("%sa.zcr", _zNemCursorFileNames[i]); - _cursors[i][0] = ZorkCursor(name); // Up cursor + _cursors[i][0] = ZorkCursor(_engine, name); // Up cursor name = Common::String::format("%sb.zcr", _zNemCursorFileNames[i]); - _cursors[i][1] = ZorkCursor(name); // Down cursor + _cursors[i][1] = ZorkCursor(_engine, name); // Down cursor } else if (_engine->getGameId() == GID_GRANDINQUISITOR) { - _cursors[i][0] = ZorkCursor(_zgiCursorFileNames[i]); // Up cursor + _cursors[i][0] = ZorkCursor(_engine, _zgiCursorFileNames[i]); // Up cursor char buffer[25]; strcpy(buffer, _zgiCursorFileNames[i]); buffer[3] += 2; - _cursors[i][1] = ZorkCursor(buffer); // Down cursor + _cursors[i][1] = ZorkCursor(_engine, buffer); // Down cursor } } } @@ -76,22 +76,22 @@ void CursorManager::setItemID(int id) { Common::String file; if (_engine->getGameId() == GID_NEMESIS) { file = Common::String::format("%2.2d%s%c.zcr", id, "idle", 'a'); - _cursors[NUM_CURSORS][0] = ZorkCursor(file); + _cursors[NUM_CURSORS][0] = ZorkCursor(_engine, file); file = Common::String::format("%2.2d%s%c.zcr", id, "idle", 'b'); - _cursors[NUM_CURSORS][1] = ZorkCursor(file); + _cursors[NUM_CURSORS][1] = ZorkCursor(_engine, file); file = Common::String::format("%2.2d%s%c.zcr", id, "act", 'a'); - _cursors[NUM_CURSORS + 1][0] = ZorkCursor(file); + _cursors[NUM_CURSORS + 1][0] = ZorkCursor(_engine, file); file = Common::String::format("%2.2d%s%c.zcr", id, "act", 'b'); - _cursors[NUM_CURSORS + 1][0] = ZorkCursor(file); + _cursors[NUM_CURSORS + 1][0] = ZorkCursor(_engine, file); } else if (_engine->getGameId() == GID_GRANDINQUISITOR) { file = Common::String::format("g0b%cc%2.2x1.zcr", 'a' , id); - _cursors[NUM_CURSORS][0] = ZorkCursor(file); + _cursors[NUM_CURSORS][0] = ZorkCursor(_engine, file); file = Common::String::format("g0b%cc%2.2x1.zcr", 'c' , id); - _cursors[NUM_CURSORS][1] = ZorkCursor(file); + _cursors[NUM_CURSORS][1] = ZorkCursor(_engine, file); file = Common::String::format("g0b%cc%2.2x1.zcr", 'b' , id); - _cursors[NUM_CURSORS + 1][0] = ZorkCursor(file); + _cursors[NUM_CURSORS + 1][0] = ZorkCursor(_engine, file); file = Common::String::format("g0b%cc%2.2x1.zcr", 'd' , id); - _cursors[NUM_CURSORS + 1][1] = ZorkCursor(file); + _cursors[NUM_CURSORS + 1][1] = ZorkCursor(_engine, file); } else return; } -- cgit v1.2.3