diff options
author | Le Philousophe | 2019-03-10 17:27:15 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | 0619120f3a71a9db513b3bc277b1ca291b0de764 (patch) | |
tree | 7e623d2694e1ff56af6980e94f462f6c9818a0a7 /engines/cryomni3d/versailles/engine.cpp | |
parent | 6e692195c8b305fac026c139e8b0d199755a0656 (diff) | |
download | scummvm-rg350-0619120f3a71a9db513b3bc277b1ca291b0de764.tar.gz scummvm-rg350-0619120f3a71a9db513b3bc277b1ca291b0de764.tar.bz2 scummvm-rg350-0619120f3a71a9db513b3bc277b1ca291b0de764.zip |
CRYOMNI3D: Add a function to collect an Object *
Diffstat (limited to 'engines/cryomni3d/versailles/engine.cpp')
-rw-r--r-- | engines/cryomni3d/versailles/engine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp index b9795c28e3..cdb3f634f4 100644 --- a/engines/cryomni3d/versailles/engine.cpp +++ b/engines/cryomni3d/versailles/engine.cpp @@ -1326,9 +1326,8 @@ void CryOmni3DEngine_Versailles::animateCursor(const Object *obj) { g_system->showMouse(cursorWasVisible); } -void CryOmni3DEngine_Versailles::collectObject(unsigned int nameID, const ZonFixedImage *fimg, +void CryOmni3DEngine_Versailles::collectObject(Object *obj, const ZonFixedImage *fimg, bool showObject) { - Object *obj = _objects.findObjectByNameID(nameID); _inventory.add(obj); Object::ViewCallback cb = obj->viewCallback(); if (showObject && cb) { |