From 43e0daf5d1b32f6a443a4cedd9fb932c24d211e3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 18 Nov 2012 21:12:21 +1100 Subject: HOPKINS: Bugfix to allow Breakout paddle movement whilst waiting for starting click --- engines/hopkins/computer.cpp | 3 ++- engines/hopkins/computer.h | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp index 2e24b1bbc6..4f0fc1b5ec 100644 --- a/engines/hopkins/computer.cpp +++ b/engines/hopkins/computer.cpp @@ -786,7 +786,7 @@ void ComputerManager::PLAY_BRIQUE() { // Wait for mouse press to start playing do { - RAQX = _vm->_eventsManager.souris_x; + RAQX = _vm->_eventsManager.XMOUSE(); if (_vm->_eventsManager.souris_x <= 4) RAQX = 5; if (RAQX > 282) @@ -817,6 +817,7 @@ void ComputerManager::PLAY_BRIQUE() { break; _vm->_graphicsManager.FADE_OUT_CASSE(); --CASSEVIE; + if (CASSEVIE) { AFF_VIE(); if (CASSEVIE) diff --git a/engines/hopkins/computer.h b/engines/hopkins/computer.h index 8605e2bf31..41526ee03c 100644 --- a/engines/hopkins/computer.h +++ b/engines/hopkins/computer.h @@ -57,11 +57,32 @@ private: int16 *CASSETAB; bool FMOUSE; int NBBRIQUES; + + /** + * Breakout score + */ int CASSESCORE; + + /** + * Number of Breakout lives remaining + */ int CASSEVIE; + + /** + * Breakout game speed + */ int CASSESPEED; + + /** + * Breakout ball horizontal position + */ int BALLEHORI; + + /** + * Breakout ball vertical position + */ int BALLEVERTI; + int NB_TABLE; int RAQX; int CASSE_HISCORE; -- cgit v1.2.3