diff options
author | Max Horn | 2009-11-02 21:56:29 +0000 |
---|---|---|
committer | Max Horn | 2009-11-02 21:56:29 +0000 |
commit | 5cf868b75711c69736d3b2eb6f1068bdc48349ae (patch) | |
tree | 1cc0ba610669f66f6b038dd5b668a496a50f09cc /engines/tinsel/events.cpp | |
parent | 51933629d1f1a17839ddbb75b2b619effe117abb (diff) | |
download | scummvm-rg350-5cf868b75711c69736d3b2eb6f1068bdc48349ae.tar.gz scummvm-rg350-5cf868b75711c69736d3b2eb6f1068bdc48349ae.tar.bz2 scummvm-rg350-5cf868b75711c69736d3b2eb6f1068bdc48349ae.zip |
TINSEL: Turn config code into a simple C++ class
svn-id: r45617
Diffstat (limited to 'engines/tinsel/events.cpp')
-rw-r--r-- | engines/tinsel/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/events.cpp b/engines/tinsel/events.cpp index 8a9c4833a8..c66c127413 100644 --- a/engines/tinsel/events.cpp +++ b/engines/tinsel/events.cpp @@ -101,7 +101,7 @@ void AllowDclick(CORO_PARAM, PLR_EVENT be) { CORO_BEGIN_CODE(_ctx); if (be == PLR_SLEFT) { GetToken(TOKEN_LEFT_BUT); - CORO_SLEEP(dclickSpeed+1); + CORO_SLEEP(_vm->_config->_dclickSpeed+1); FreeToken(TOKEN_LEFT_BUT); // Prevent activation of 2 events on the same tick @@ -329,7 +329,7 @@ static void ProcessUserEvent(TINSEL_EVENT uEvent, const Common::Point &coOrds, P * ProcessButEvent */ void ProcessButEvent(PLR_EVENT be) { - if (bSwapButtons) { + if (_vm->_config->_swapButtons) { switch (be) { case PLR_SLEFT: be = PLR_SRIGHT; |