aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/grammar.cpp2
-rw-r--r--engines/sci/engine/kgraphics.cpp8
-rw-r--r--engines/sci/engine/kmovement.cpp2
-rw-r--r--engines/sci/engine/kpathing.cpp2
-rw-r--r--engines/sci/gfx/operations.cpp2
-rw-r--r--engines/sci/sfx/core.cpp2
-rw-r--r--engines/sci/vocabulary.cpp2
7 files changed, 10 insertions, 10 deletions
diff --git a/engines/sci/engine/grammar.cpp b/engines/sci/engine/grammar.cpp
index 8afea247ae..3f022379e1 100644
--- a/engines/sci/engine/grammar.cpp
+++ b/engines/sci/engine/grammar.cpp
@@ -41,7 +41,7 @@ namespace Sci {
#define TOKEN_NON_NT (TOKEN_OPAREN | TOKEN_TERMINAL_CLASS | TOKEN_TERMINAL_GROUP | TOKEN_STUFFING_WORD)
#define TOKEN_TERMINAL (TOKEN_TERMINAL_CLASS | TOKEN_TERMINAL_GROUP)
-static int _allocd_rules = 0; // FIXME: Avoid static vars
+static int _allocd_rules = 0; // FIXME: Avoid non-cpnst global vars
int getAllocatedRulesCount() { return _allocd_rules; }
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 5c9058c09c..f9efcc735c 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -480,9 +480,9 @@ void _k_graph_rebuild_port_with_color(EngineState *s, gfx_color_t newbgcolor) {
delete port;
}
-static bool activated_icon_bar = false; // FIXME: Avoid static vars
-static int port_origin_x = 0; // FIXME: Avoid static vars
-static int port_origin_y = 0; // FIXME: Avoid static vars
+static bool activated_icon_bar = false; // FIXME: Avoid non-cpnst global vars
+static int port_origin_x = 0; // FIXME: Avoid non-cpnst global vars
+static int port_origin_y = 0; // FIXME: Avoid non-cpnst global vars
reg_t kGraph(EngineState *s, int funct_nr, int argc, reg_t *argv) {
rect_t area;
@@ -1776,7 +1776,7 @@ void _k_view_list_mark_free(EngineState *s, reg_t off) {
}
}
-static bool _k_animate_ran = false; // FIXME: Avoid static vars
+static bool _k_animate_ran = false; // FIXME: Avoid non-cpnst global vars
int _k_view_list_dispose_loop(EngineState *s, List *list, GfxDynView *widget, int funct_nr, int argc, reg_t *argv) {
// disposes all list members flagged for disposal; funct_nr is the invoking kfunction
diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp
index 85b3adf836..1de74326a6 100644
--- a/engines/sci/engine/kmovement.cpp
+++ b/engines/sci/engine/kmovement.cpp
@@ -237,7 +237,7 @@ enum Movecnt {
UNINITIALIZED
};
-static Movecnt handle_movecnt = UNINITIALIZED; // FIXME: Avoid static vars
+static Movecnt handle_movecnt = UNINITIALIZED; // FIXME: Avoid non-cpnst global vars
/**
* Address parameters may be passed in one of three forms:
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 07f8b2eb52..fa30392ead 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -255,7 +255,7 @@ struct PathfindingState {
};
-static Vertex *s_vertex_cur; // FIXME: Avoid static vars
+static Vertex *s_vertex_cur; // FIXME: Avoid non-cpnst global vars
// FIXME: Temporary hack to deal with points in reg_ts
static bool polygon_is_reg_t(const byte *list, int size) {
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 46f0bb4332..509ddbae5a 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -1382,7 +1382,7 @@ static int _gfxop_numlockify(int c) {
}
static sci_event_t scummvm_get_event(gfx_driver_t *drv) {
- static int _modifierStates = 0; // FIXME: EVIL HACK
+ static int _modifierStates = 0; // FIXME: Avoid non-cpnst global vars
sci_event_t input = { SCI_EVT_NONE, 0, 0, 0 };
Common::EventManager *em = g_system->getEventManager();
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp
index 96ad6fa34a..eadacdb5c9 100644
--- a/engines/sci/sfx/core.cpp
+++ b/engines/sci/sfx/core.cpp
@@ -44,7 +44,7 @@
namespace Sci {
class SfxPlayer;
-SfxPlayer *player = NULL; // FIXME: Avoid static vars
+SfxPlayer *player = NULL; // FIXME: Avoid non-cpnst global vars
#pragma mark -
diff --git a/engines/sci/vocabulary.cpp b/engines/sci/vocabulary.cpp
index 8ac75fe628..43a3992777 100644
--- a/engines/sci/vocabulary.cpp
+++ b/engines/sci/vocabulary.cpp
@@ -32,7 +32,7 @@
namespace Sci {
-int vocab_version = 0;
+static int vocab_version = 0; // FIXME: Avoid non-cpnst global vars
#if 0