[Scummvm-git-logs] scummvm master -> 54247f9ba76a1d2ab0abd5fbbc4202b59121c6a9

Strangerke noreply at scummvm.org
Sat May 18 08:52:51 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
54247f9ba7 BAGEL: Remove useless variable in SBarSlotWnd


Commit: 54247f9ba76a1d2ab0abd5fbbc4202b59121c6a9
    https://github.com/scummvm/scummvm/commit/54247f9ba76a1d2ab0abd5fbbc4202b59121c6a9
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-18T09:52:46+01:00

Commit Message:
BAGEL: Remove useless variable in SBarSlotWnd

Changed paths:
    engines/bagel/spacebar/slot_wnd.cpp
    engines/bagel/spacebar/slot_wnd.h


diff --git a/engines/bagel/spacebar/slot_wnd.cpp b/engines/bagel/spacebar/slot_wnd.cpp
index a8f62108ac0..a212dee5ea3 100644
--- a/engines/bagel/spacebar/slot_wnd.cpp
+++ b/engines/bagel/spacebar/slot_wnd.cpp
@@ -120,7 +120,6 @@ SBarSlotWnd::SBarSlotWnd() : CBagStorageDevWnd() {
 	_pSlotSound = nullptr;
 	_pLoseBmp = nullptr;
 	_pBkgSnd = nullptr;
-	_bPaused = false;
 	_bLose = false;
 	
 	CBagStorageDevWnd::setHelpFilename(BuildSlotDir("SLOT.TXT"));
@@ -173,7 +172,6 @@ void SBarSlotWnd::onMainLoop() {
 }
 
 ErrorCode  SBarSlotWnd::attach() {
-	_bPaused = false;
 	_bLose = false;
 	_bFixBet = false;
 
@@ -858,11 +856,8 @@ void SBarSlotWnd::onBofButton(CBofObject *pObject, int nState) {
 		CBagel *pApp = CBagel::getBagApp();
 		if (pApp != nullptr) {
 			CBagMasterWin *pWin = pApp->getMasterWnd();
-			if (pWin != nullptr) {
-				_bPaused = true;
+			if (pWin != nullptr)
 				pWin->onHelp(BuildSlotDir("SLOT.TXT"));
-				_bPaused = false;
-			}
 		}
 		}
 		break;
diff --git a/engines/bagel/spacebar/slot_wnd.h b/engines/bagel/spacebar/slot_wnd.h
index b82c518070c..e9a9e471625 100644
--- a/engines/bagel/spacebar/slot_wnd.h
+++ b/engines/bagel/spacebar/slot_wnd.h
@@ -96,7 +96,6 @@ protected:
 	CBofSound *_pBkgSnd;			// Casino background sounds
 	CBofSound *_pSlotSound;
 	CBofSound *_pWinSound;			// Allow all ambient noise to continue playing
-	bool _bPaused;
 	bool _bLose;
 
 public:
@@ -105,8 +104,8 @@ public:
 	virtual void onBofButton(CBofObject *pButton, int nState);
 	virtual void onMainLoop();
 
-	virtual ErrorCode attach();	// This function attachs the background and nessasary bitmaps
-	virtual ErrorCode detach();	// This function detachs the background and nessasary bitmaps
+	virtual ErrorCode attach();	// This function attachs the background and necessary bitmaps
+	virtual ErrorCode detach();	// This function detachs the background and necessary bitmaps
 
 	void addBet(int nBetVal);
 	void betAll();




More information about the Scummvm-git-logs mailing list