Fix compiler warning.

svn-id: r48365
This commit is contained in:
Travis Howell 2010-03-23 00:42:42 +00:00
parent 6545e728b6
commit 9f53578fd2
6 changed files with 16 additions and 16 deletions

View File

@ -205,7 +205,7 @@ AGOSEngine::AGOSEngine(OSystem *syst)
_beardLoaded = 0;
_litBoxFlag = 0;
_mortalFlag = 0;
_displayScreen = false;
_displayFlag = 0;
_syncFlag2 = 0;
_inCallBack = 0;
_cepeFlag = 0;

View File

@ -300,7 +300,7 @@ protected:
bool _beardLoaded;
bool _litBoxFlag;
bool _mortalFlag;
bool _displayScreen;
uint16 _displayFlag;
bool _syncFlag2;
bool _inCallBack;
bool _cepeFlag;

View File

@ -111,7 +111,7 @@ void AGOSEngine_Feeble::animateSpritesByY() {
drawImage_init(vsp->image, vsp->palette, vsp->x, vsp->y, vsp->flags);
}
_displayScreen = true;
_displayFlag++;
}
void AGOSEngine_Feeble::animateSprites() {
@ -146,7 +146,7 @@ void AGOSEngine_Feeble::animateSprites() {
vsp++;
}
_displayScreen = true;
_displayFlag++;
}
#endif
@ -298,7 +298,7 @@ void AGOSEngine::animateSprites() {
if (_window4Flag == 1)
_window4Flag++;
_displayScreen = true;
_displayFlag++;
}
void AGOSEngine::dirtyClips() {

View File

@ -175,9 +175,9 @@ void AGOSEngine::haltAnimation() {
_videoLockOut |= 0x10;
if (_displayScreen) {
if (_displayFlag) {
displayScreen();
_displayScreen = false;
_displayFlag = 0;
}
}
@ -593,7 +593,7 @@ void AGOSEngine_Feeble::timerProc() {
animateSprites();
}
if (_displayScreen) {
if (_displayFlag) {
if (getGameType() == GType_FF && !(getFeatures() & GF_DEMO)) {
if (!getBitFlag(78)) {
oracleLogo();
@ -604,7 +604,7 @@ void AGOSEngine_Feeble::timerProc() {
}
handleMouseMoved();
displayScreen();
_displayScreen = false;
_displayFlag = 0;
}
_videoLockOut &= ~2;
@ -642,9 +642,9 @@ void AGOSEngine_PN::timerProc() {
processVgaEvents();
}
if (_displayScreen) {
if (_displayFlag) {
displayScreen();
_displayScreen = false;
_displayFlag = 0;
}
_videoLockOut &= ~2;
@ -668,9 +668,9 @@ void AGOSEngine::timerProc() {
processVgaEvents();
}
if (_displayScreen) {
if (_displayFlag) {
displayScreen();
_displayScreen = false;
_displayFlag = 0;
}
_videoLockOut &= ~2;

View File

@ -1299,7 +1299,7 @@ void AGOSEngine::vc35_clearWindow() {
}
void AGOSEngine::vc36_setWindowImage() {
_displayScreen = false;
_displayFlag = 0;
uint16 vga_res = vcReadNextWord();
uint16 windowNum = vcReadNextWord();
setWindowImage(windowNum, vga_res);
@ -1321,7 +1321,7 @@ void AGOSEngine::vc37_pokePalette() {
if (!(_videoLockOut & 0x20)) {
_paletteFlag = 1;
_displayScreen++;
_displayFlag++;
}
}

View File

@ -71,7 +71,7 @@ int AGOSEngine::getScale(int16 y, int16 x) {
}
void AGOSEngine_Feeble::vc36_setWindowImage() {
_displayScreen = false;
_displayFlag = 0;
vcReadNextWord();
vcReadNextWord();
fillBackGroundFromFront();