aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d
diff options
context:
space:
mode:
authorLe Philousophe2019-05-02 23:59:18 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commit5a0d511ebd249d21b5390d26add991e2c2d1bda2 (patch)
treedb9fa4ec7db19014af1c3ca3eb368b55ea9f69eb /engines/cryomni3d
parentc427cd9dcab111dd7f11a5ae96d0e20fd94ddb13 (diff)
downloadscummvm-rg350-5a0d511ebd249d21b5390d26add991e2c2d1bda2.tar.gz
scummvm-rg350-5a0d511ebd249d21b5390d26add991e2c2d1bda2.tar.bz2
scummvm-rg350-5a0d511ebd249d21b5390d26add991e2c2d1bda2.zip
CRYOMNI3D: Use typedef instead of repeating
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r--engines/cryomni3d/fixed_image.cpp2
-rw-r--r--engines/cryomni3d/fixed_image.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/cryomni3d/fixed_image.cpp b/engines/cryomni3d/fixed_image.cpp
index 0fb951342f..660190a09f 100644
--- a/engines/cryomni3d/fixed_image.cpp
+++ b/engines/cryomni3d/fixed_image.cpp
@@ -42,7 +42,7 @@ ZonFixedImage::~ZonFixedImage() {
delete _imageDecoder;
}
-void ZonFixedImage::run(const Common::Functor1<ZonFixedImage *, void> *callback) {
+void ZonFixedImage::run(const CallbackFunctor *callback) {
_exit = false;
_zonesMode = kZonesMode_None;
diff --git a/engines/cryomni3d/fixed_image.h b/engines/cryomni3d/fixed_image.h
index b462315323..7f2b1e07de 100644
--- a/engines/cryomni3d/fixed_image.h
+++ b/engines/cryomni3d/fixed_image.h
@@ -65,7 +65,7 @@ public:
void run(const CallbackFunctor *callback);
- /* THis function is used to refresh image after various events */
+ /* This function is used to refresh image after various events */
void display() const;
/* These functions and attributes are used in image handler */
@@ -96,7 +96,7 @@ public:
Common::KeyState _key;
protected:
- const Common::Functor1<ZonFixedImage *, void> *_callback;
+ const CallbackFunctor *_callback;
CryOmni3DEngine &_engine;
Inventory &_inventory;
const Sprites &_sprites;