mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 23:01:42 +00:00
CRUISE: Initialize some variables in the contractor, change some variables to boolean
This commit is contained in:
parent
0a1c75bc32
commit
ff93aef6ec
@ -50,6 +50,16 @@ CruiseEngine::CruiseEngine(OSystem * syst, const CRUISEGameDescription *gameDesc
|
||||
_debugger = new Debugger();
|
||||
_sound = new PCSound(_mixer, this);
|
||||
|
||||
PCFadeFlag = false;
|
||||
_preLoad = false;
|
||||
_savedCursor = CURSOR_NOMOUSE;
|
||||
lastTick = 0;
|
||||
lastTickDebug = 0;
|
||||
_gameSpeed = GAME_FRAME_DELAY_1;
|
||||
_speedFlag = false;
|
||||
_polyStructs = nullptr;
|
||||
_polyStruct = nullptr;
|
||||
|
||||
// Setup mixer
|
||||
syncSoundSettings();
|
||||
}
|
||||
@ -87,9 +97,6 @@ Common::Error CruiseEngine::run() {
|
||||
Cruise::changeCursor(Cruise::CURSOR_NORMAL);
|
||||
CursorMan.showMouse(true);
|
||||
|
||||
lastTick = 0;
|
||||
lastTickDebug = 0;
|
||||
|
||||
mainLoop();
|
||||
|
||||
deinitialize();
|
||||
@ -98,24 +105,12 @@ Common::Error CruiseEngine::run() {
|
||||
}
|
||||
|
||||
void CruiseEngine::initialize() {
|
||||
PCFadeFlag = 0;
|
||||
_gameSpeed = GAME_FRAME_DELAY_1;
|
||||
_speedFlag = false;
|
||||
|
||||
/*volVar1 = 0;
|
||||
* fileData1 = 0; */
|
||||
|
||||
/*PAL_fileHandle = -1; */
|
||||
|
||||
// video init stuff
|
||||
|
||||
initSystem();
|
||||
gfxModuleData_Init();
|
||||
|
||||
// another bit of video init
|
||||
|
||||
readVolCnf();
|
||||
_vm->_polyStruct = NULL;
|
||||
}
|
||||
|
||||
void CruiseEngine::deinitialize() {
|
||||
|
@ -1937,7 +1937,7 @@ void CruiseEngine::mainLoop() {
|
||||
|
||||
if (displayOn) {
|
||||
if (doFade)
|
||||
PCFadeFlag = 0;
|
||||
PCFadeFlag = false;
|
||||
|
||||
/*if (!PCFadeFlag)*/
|
||||
mainDraw(userWait);
|
||||
|
@ -644,7 +644,7 @@ int16 Op_FadeOut() {
|
||||
flip();
|
||||
|
||||
fadeFlag = 1;
|
||||
PCFadeFlag = 1;
|
||||
PCFadeFlag = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ void fadeIn() {
|
||||
gfxModuleData_setPal256(workpal);
|
||||
|
||||
fadeFlag = 0;
|
||||
PCFadeFlag = 0;
|
||||
PCFadeFlag = false;
|
||||
}
|
||||
|
||||
void flipScreen() {
|
||||
|
@ -735,7 +735,7 @@ void initVars() {
|
||||
resetBackgroundIncrustList(&backgroundIncrustHead);
|
||||
|
||||
vblLimit = 0;
|
||||
remdo = 0;
|
||||
remdo = false;
|
||||
songLoaded = 0;
|
||||
songPlayed = 0;
|
||||
songLoop = 1;
|
||||
@ -777,7 +777,7 @@ void initVars() {
|
||||
buttonDown = 0;
|
||||
var41 = 0;
|
||||
playerMenuEnabled = 0;
|
||||
PCFadeFlag = 0;
|
||||
PCFadeFlag = false;
|
||||
}
|
||||
|
||||
Common::Error saveSavegameData(int saveGameIdx, const Common::String &saveName) {
|
||||
|
@ -24,8 +24,8 @@
|
||||
|
||||
namespace Cruise {
|
||||
|
||||
uint16 remdo = 0;
|
||||
uint16 PCFadeFlag;
|
||||
bool remdo = false;
|
||||
bool PCFadeFlag;
|
||||
|
||||
char *getText(int textIndex, int overlayIndex) {
|
||||
if (!overlayTable[overlayIndex].ovlData) {
|
||||
|
@ -27,8 +27,8 @@
|
||||
|
||||
namespace Cruise {
|
||||
|
||||
extern uint16 remdo;
|
||||
extern uint16 PCFadeFlag;
|
||||
extern bool remdo;
|
||||
extern bool PCFadeFlag;
|
||||
|
||||
int16 objInit(int ovlIdx, int param1, int param2);
|
||||
char *getText(int textIndex, int overlayIndex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user