diff options
author | Tony Puccinelli | 2010-08-09 06:55:25 +0000 |
---|---|---|
committer | Tony Puccinelli | 2010-08-09 06:55:25 +0000 |
commit | 83f1531cb8fa5ba43c246143ecdde2cb1d140a8e (patch) | |
tree | c31cb2d9980580eccb992a73a176356d32fff7c5 /engines/cruise/function.cpp | |
parent | 924c4e0c06eb90677847d04b185468ad3d2efb22 (diff) | |
download | scummvm-rg350-83f1531cb8fa5ba43c246143ecdde2cb1d140a8e.tar.gz scummvm-rg350-83f1531cb8fa5ba43c246143ecdde2cb1d140a8e.tar.bz2 scummvm-rg350-83f1531cb8fa5ba43c246143ecdde2cb1d140a8e.zip |
Moved a large number of global variables in the Cruise Engine into a Singleton class and modified all references to these variables to access them via an instance of this Singleton class
svn-id: r51935
Diffstat (limited to 'engines/cruise/function.cpp')
-rw-r--r-- | engines/cruise/function.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 3d07abf441..a25a54c562 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -446,8 +446,8 @@ int16 Op_KillMenu() { } // Free the message list -// if (linkedMsgList) freeMsgList(linkedMsgList); - linkedMsgList = NULL; +// if (CVars.linkedMsgList) freeMsgList(CVars.linkedMsgList); + CVars.linkedMsgList = NULL; linkedRelation = NULL; return 0; @@ -1268,10 +1268,10 @@ int16 Op_regenerateBackgroundIncrust() { int16 Op_SetStringColors() { // TODO: here ignore if low color mode - subColor = (uint8) popVar(); - itemColor = (uint8) popVar(); - selectColor = (uint8) popVar(); - titleColor = (uint8) popVar(); + CVars.subColor = (uint8) popVar(); + CVars.itemColor = (uint8) popVar(); + CVars.selectColor = (uint8) popVar(); + CVars.titleColor = (uint8) popVar(); return 0; } |