From 1dbf8d73d56052654522cf4076490090a41f336b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 16 Nov 2010 09:53:55 +0000 Subject: TINSEL: Mark all (?) global vars with a FIXME comment Use of global vars is what prevents RTL from working in Tinsel (and probably in other engines). More specifically, the fact that many global vars are not explicitly inited when the engine is (re)launched. svn-id: r54262 --- engines/tinsel/events.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/tinsel/events.cpp') diff --git a/engines/tinsel/events.cpp b/engines/tinsel/events.cpp index 9c01f15b2a..4e61a6ef29 100644 --- a/engines/tinsel/events.cpp +++ b/engines/tinsel/events.cpp @@ -61,6 +61,8 @@ extern bool bEnableMenu; //----------------- LOCAL GLOBAL DATA -------------------- +// FIXME: Avoid non-const global vars + static uint32 lastUserEvent = 0; // Time it hapenned static int leftEvents = 0; // Single or double, left or right. Or escape key. static int escEvents = 1; // Escape key @@ -393,7 +395,7 @@ void PlayerEvent(PLR_EVENT pEvent, const Common::Point &coOrds) { "PLR_JUMP", "PLR_NOEVENT"}; debugC(DEBUG_BASIC, kTinselDebugActions, "%s - (%d,%d)", actionList[pEvent], coOrds.x, coOrds.y); - static uint32 lastRealAction = 0; + static uint32 lastRealAction = 0; // FIXME: Avoid non-const global vars // This stuff to allow F1 key during startup. if (bEnableMenu && pEvent == PLR_MENU) -- cgit v1.2.3