Skip to content

Commit

Permalink
SLUDGE: Remove special settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yinsimei committed Jul 18, 2017
1 parent 5d554d3 commit 70c965a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
5 changes: 2 additions & 3 deletions engines/sludge/main_loop.cpp
Expand Up @@ -20,6 +20,7 @@
*
*/

#include "common/config-manager.h"
#include "common/debug.h"
#include "common/events.h"
#include "common/keyboard.h"
Expand All @@ -45,7 +46,6 @@
#include "sludge/sludger.h"
#include "sludge/helpers.h"
#include "sludge/sludge.h"
#include "sludge/specialsettings.h"

namespace Sludge {

Expand All @@ -58,7 +58,6 @@ HWND hMainWindow = NULL;
int realWinWidth = 640, realWinHeight = 480;
extern float cameraZoom;

extern int specialSettings;
extern inputType input;
extern variableStack *noStack;
Graphics::Surface renderSurface;
Expand Down Expand Up @@ -182,7 +181,7 @@ int main_loop(const char *filename)

g_sludge->gameName = getNumberedString(1);

if (!(specialSettings & SPECIAL_SILENT)) {
if (!ConfMan.hasKey("mute") || !ConfMan.getBool("mute")) {
initSoundStuff(hMainWindow);
}

Expand Down
4 changes: 0 additions & 4 deletions engines/sludge/movie.cpp
Expand Up @@ -20,17 +20,13 @@
*
*/

#include "sludge/specialsettings.h"

#include "sludge/newfatal.h"
#include "sludge/timing.h"
#include "sludge/movie.h"
#include "sludge/sound.h"

namespace Sludge {

extern int specialSettings;

// in main.c
int checkInput();
extern int weAreDoneSoQuit;
Expand Down
4 changes: 1 addition & 3 deletions engines/sludge/sludger.cpp
Expand Up @@ -47,7 +47,6 @@
#include "sludge/language.h"
#include "sludge/variable.h"
#include "sludge/sludge.h"
#include "sludge/specialsettings.h"
#include "sludge/version.h"
#include "sludge/imgloader.h"

Expand All @@ -69,7 +68,6 @@ int selectedLanguage = 0;
int languageNum = -1;

int gameVersion;
int specialSettings;
FILETIME fileTime;
bool captureAllKeys = false;

Expand Down Expand Up @@ -218,7 +216,7 @@ bool initSludge(const Common::String &filename) {
debug(kSludgeDebugDataLoad, "winWidth : %i", winWidth);
winHeight = fp->readUint16BE();
debug(kSludgeDebugDataLoad, "winHeight : %i", winHeight);
specialSettings = fp->readByte();
int specialSettings = fp->readByte();
debug(kSludgeDebugDataLoad, "specialSettings : %i", specialSettings);
g_sludge->_timer.setDesiredfps(1000 / fp->readByte());

Expand Down
29 changes: 0 additions & 29 deletions engines/sludge/specialsettings.h

This file was deleted.

0 comments on commit 70c965a

Please sign in to comment.