aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-21 00:11:14 +1000
committerPaul Gilbert2012-05-21 00:11:14 +1000
commit7303849490881f75c990edba895118ec03152320 (patch)
treeb66d52d186b9a4482488fb45c49e29652d4da2a6 /engines
parent29cbb3f824a7dc197c396e44de4efc702f04c89a (diff)
downloadscummvm-rg350-7303849490881f75c990edba895118ec03152320.tar.gz
scummvm-rg350-7303849490881f75c990edba895118ec03152320.tar.bz2
scummvm-rg350-7303849490881f75c990edba895118ec03152320.zip
TONY: Removed redundant pause code.
The original paused the game whilst dragging the window, and ScummVM takes care of that automatically.
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/tony.cpp42
-rw-r--r--engines/tony/tony.h7
2 files changed, 0 insertions, 49 deletions
diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp
index 04e81d3a31..b60a196ed1 100644
--- a/engines/tony/tony.cpp
+++ b/engines/tony/tony.cpp
@@ -503,10 +503,6 @@ void TonyEngine::PlayProcess(CORO_PARAM, const void *param) {
// Game loop. We rely on the outer main process to detect if a shutdown is required,
// and kill the scheudler and all the processes, including this one
for (;;) {
- // Se siamo in pausa, entra nel loop appropriato
- if (_vm->m_bPaused)
- _vm->PauseLoop();
-
// If a savegame needs to be loaded, then do so
if (_vm->_loadSlotNumber != -1 && GLOBALS.GfxEngine != NULL) {
_ctx->fn = GetSaveStateFileName(_vm->_loadSlotNumber);
@@ -576,44 +572,6 @@ void TonyEngine::GDIControl(bool bCon) {
}
-void TonyEngine::PauseLoop(void) {
- warning("TODO: TonyEngine::PauseLoop");
-
-#if 0
- MSG msg;
- int st,et;
-
- st = GetTime();
-
- while (m_bPaused && GetMessage(&msg,_window,0,0)) {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
- }
-
- et = GetTime();
-
- m_startTime += et - st;
-#endif
-}
-
-void TonyEngine::Pause(bool bPause) {
- // If the new status already matches the current one, do nothing
- if (m_bPaused == bPause)
- return;
-
-warning("TODO: TonyEninge::Pause");
-/*
- m_bPaused = bPause;
- theEngine.GDIControl(m_bPaused);
-
- if (m_bPaused) {
- SetWindowText(_window, "Tony Tough and the night of Roasted Moths - PAUSED");
- } else {
- SetWindowText(_window, "Tony Tough and the night of Roasted Moths");
- }
-*/
-}
-
void TonyEngine::FreezeTime(void) {
m_bTimeFreezed = true;
m_nTimeFreezed = GetTime() - m_startTime;
diff --git a/engines/tony/tony.h b/engines/tony/tony.h
index 8d4e357079..23c235d058 100644
--- a/engines/tony/tony.h
+++ b/engines/tony/tony.h
@@ -152,9 +152,6 @@ public:
// Warn when are being controlled by the GDI
void GDIControl(bool bCon);
- // Loop that handles messages when the game is paused
- void PauseLoop(void);
-
void Play();
void Close();
void Abort();
@@ -167,10 +164,6 @@ public:
void ShowLocation(void) { m_bDrawLocation = true; }
void HideLocation(void) { m_bDrawLocation = false; }
- // Handle pause mode
- void Pause(bool bPause);
- bool IsPaused() { return m_bPaused; }
-
// Reads the time
uint32 GetTime(void);
void FreezeTime(void);