aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
Diffstat (limited to 'sword2')
-rw-r--r--sword2/sword2.cpp5
-rw-r--r--sword2/sword2.h7
2 files changed, 6 insertions, 6 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index a5d1a56e5e..a63ceb3169 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -54,7 +54,7 @@ static const GameSettings sword2_settings[] = {
/* Broken Sword 2 */
{"sword2", "Broken Sword II", MDT_ADLIB | MDT_NATIVE, GF_DEFAULT_TO_1X_SCALER, "players.clu" },
{"sword2alt", "Broken Sword II (alt)", MDT_ADLIB | MDT_NATIVE, GF_DEFAULT_TO_1X_SCALER, "r2ctlns.ocx" },
- {"sword2demo", "Broken Sword II (Demo)", MDT_ADLIB | MDT_NATIVE, GF_DEFAULT_TO_1X_SCALER | GF_DEMO, "players.clu" },
+ {"sword2demo", "Broken Sword II (Demo)", MDT_ADLIB | MDT_NATIVE, GF_DEFAULT_TO_1X_SCALER | Sword2::GF_DEMO, "players.clu" },
{NULL, NULL, MDT_NONE, 0, NULL}
};
@@ -102,9 +102,8 @@ Sound *g_sound = NULL;
Display *g_display = NULL;
Sword2Engine::Sword2Engine(GameDetector *detector, OSystem *syst)
- : Engine(detector, syst) {
+ : Engine(syst) {
- _detector = detector;
g_sword2 = this;
_debugger = NULL;
_features = detector->_game.features;
diff --git a/sword2/sword2.h b/sword2/sword2.h
index b8d2094cd9..624c69c289 100644
--- a/sword2/sword2.h
+++ b/sword2/sword2.h
@@ -37,12 +37,14 @@
#include "sword2/driver/d_sound.h"
#include "sword2/driver/d_draw.h"
+class GameDetector;
+
+namespace Sword2 {
+
enum {
GF_DEMO = 1 << 0
};
-namespace Sword2 {
-
// Bodge for PCF76 version so that their demo CD can be labelled "PCF76"
// rather than "RBSII1"
@@ -141,7 +143,6 @@ public:
void go(void);
void parseEvents(void);
int32 InitialiseGame(void);
- GameDetector *_detector;
uint32 _features;
char *_targetName; // target name for saves