mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
Fascination - Fix screen transition
svn-id: r47830
This commit is contained in:
parent
86aa70ec4b
commit
ac6e9e07a3
@ -653,7 +653,7 @@ bool Draw::winOverlap(int16 idWin1, int16 idWin2) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Draw::closeWin (int16 i) {
|
void Draw::closeWin(int16 i) {
|
||||||
warning("closeWin %d", i);
|
warning("closeWin %d", i);
|
||||||
if (_fascinWin[i].id == -1)
|
if (_fascinWin[i].id == -1)
|
||||||
return;
|
return;
|
||||||
@ -665,6 +665,13 @@ void Draw::closeWin (int16 i) {
|
|||||||
_winCount--;
|
_winCount--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Draw::closeAllWin() {
|
||||||
|
for (int i = 0; i < 10; i++){
|
||||||
|
activeWin(i);
|
||||||
|
closeWin(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int16 Draw::openWin(int16 id) {
|
int16 Draw::openWin(int16 id) {
|
||||||
if (_fascinWin[id].id != -1)
|
if (_fascinWin[id].id != -1)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -193,6 +193,7 @@ public:
|
|||||||
void winDecomp(int16 x, int16 y, SurfaceDescPtr bmp);
|
void winDecomp(int16 x, int16 y, SurfaceDescPtr bmp);
|
||||||
void activeWin(int16 id);
|
void activeWin(int16 id);
|
||||||
void closeWin(int16 id);
|
void closeWin(int16 id);
|
||||||
|
void closeAllWin();
|
||||||
void restoreWin(int16 i);
|
void restoreWin(int16 i);
|
||||||
void saveWin(int16 id);
|
void saveWin(int16 id);
|
||||||
void winMove(int16 id);
|
void winMove(int16 id);
|
||||||
|
@ -352,6 +352,8 @@ void Game::playTot(int16 skipPlay) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_vm->getGameType() == kGameTypeFascination)
|
||||||
|
_vm->_draw->closeAllWin();
|
||||||
if (_totToLoad[0] == 0)
|
if (_totToLoad[0] == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user