diff options
author | Gregory Montoir | 2007-04-01 17:36:13 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-04-01 17:36:13 +0000 |
commit | 5aca9dce8c6cce89df3147a6f942620155010c8d (patch) | |
tree | 28dbee0d5addb8e49c839e5eba11733b0fe26fa5 /engines/sword1 | |
parent | 852971cfe62b59ff1f2e7451402a34fa6f8db958 (diff) | |
download | scummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.tar.gz scummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.tar.bz2 scummvm-rg350-5aca9dce8c6cce89df3147a6f942620155010c8d.zip |
added the instance of EventManager returned by OSystem::getEventManager as a member of the Engine base class. This allows to simply the code a bit and should more efficient too (ie. less virtual function chain calls, obj->getA()->getB()). Also updated several engines to make use of it.
svn-id: r26357
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/sword1.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 7a783c63b3..751fb0f1ac 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -706,8 +706,7 @@ void SwordEngine::delay(int32 amount) { //copied and mutilated from sky.cpp uint32 start = _system->getMillis(); do { - Common::EventManager *eventMan = _system->getEventManager(); - while (eventMan->pollEvent(event)) { + while (_eventMan->pollEvent(event)) { switch (event.type) { case Common::EVENT_KEYDOWN: // Make sure backspace works right (this fixes a small issue on OS X) |