diff options
author | Max Horn | 2010-11-16 09:53:55 +0000 |
---|---|---|
committer | Max Horn | 2010-11-16 09:53:55 +0000 |
commit | 1dbf8d73d56052654522cf4076490090a41f336b (patch) | |
tree | 4ec9fd566c75859793a1fe72b78d025a87ac03d0 /engines/tinsel/background.cpp | |
parent | ada9c9af608f1af9d00289f4aa2b7be868e2944f (diff) | |
download | scummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.tar.gz scummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.tar.bz2 scummvm-rg350-1dbf8d73d56052654522cf4076490090a41f336b.zip |
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
Diffstat (limited to 'engines/tinsel/background.cpp')
-rw-r--r-- | engines/tinsel/background.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/tinsel/background.cpp b/engines/tinsel/background.cpp index abfb9692a9..560216aadb 100644 --- a/engines/tinsel/background.cpp +++ b/engines/tinsel/background.cpp @@ -34,8 +34,10 @@ namespace Tinsel { +// FIXME: Avoid non-const global vars + // current background -BACKGND *pCurBgnd = NULL; +const BACKGND *pCurBgnd = NULL; // FIXME: Not yet used static bool bEntireRedraw; @@ -45,7 +47,7 @@ static bool bEntireRedraw; * @param pBgnd Pointer to data struct for current background */ -void InitBackground(BACKGND *pBgnd) { +void InitBackground(const BACKGND *pBgnd) { int i; // playfield counter PLAYFIELD *pPlayfield; // pointer to current playfield |