diff options
author | Marisa-Chan | 2014-02-04 08:32:02 +0700 |
---|---|---|
committer | Marisa-Chan | 2014-02-04 08:32:02 +0700 |
commit | 4a454ed763c24f94062be5dd57f43e0a84c1b0a2 (patch) | |
tree | cbfd6f403c780c696d86bc02397e93a89dba9870 /engines/zvision/cursor_manager.cpp | |
parent | 9c9f59d57060617d1acec71bd0d4066504f17c7a (diff) | |
download | scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.tar.gz scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.tar.bz2 scummvm-rg350-4a454ed763c24f94062be5dd57f43e0a84c1b0a2.zip |
ZVISION: New search manager for handle right handle for ZIX-files.
Diffstat (limited to 'engines/zvision/cursor_manager.cpp')
-rw-r--r-- | engines/zvision/cursor_manager.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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; } |