aboutsummaryrefslogtreecommitdiff
path: root/queen/logic.cpp
diff options
context:
space:
mode:
authorGregory Montoir2004-12-02 22:59:57 +0000
committerGregory Montoir2004-12-02 22:59:57 +0000
commit5884c6735dc911fcf732b564324feebc4cf1c0cf (patch)
treefd8a175c13d2e82ce21b41a0654d457d72acf0b7 /queen/logic.cpp
parent891970cd767760cbb682319d3215786d4a651c08 (diff)
downloadscummvm-rg350-5884c6735dc911fcf732b564324feebc4cf1c0cf.tar.gz
scummvm-rg350-5884c6735dc911fcf732b564324feebc4cf1c0cf.tar.bz2
scummvm-rg350-5884c6735dc911fcf732b564324feebc4cf1c0cf.zip
simplified palette handling
svn-id: r15971
Diffstat (limited to 'queen/logic.cpp')
-rw-r--r--queen/logic.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/queen/logic.cpp b/queen/logic.cpp
index bceb872755..565476ecf1 100644
--- a/queen/logic.cpp
+++ b/queen/logic.cpp
@@ -478,11 +478,7 @@ void Logic::eraseRoom() {
_vm->bankMan()->close(10);
_vm->bankMan()->close(12);
- if (_currentRoom >= 114) {
- _vm->display()->palFadeOut(0, 255, _currentRoom);
- } else {
- _vm->display()->palFadeOut(0, 223, _currentRoom);
- }
+ _vm->display()->palFadeOut(_currentRoom);
// invalidates all persons animations
_vm->graphics()->clearPersonFrames();
@@ -544,8 +540,7 @@ void Logic::displayRoom(uint16 room, RoomDisplayMode mode, uint16 scale, int com
if (mode != RDM_NOFADE_JOE) {
_vm->update();
BobSlot *joe = _vm->graphics()->bob(0);
- int end = isIntroRoom(_currentRoom) ? 255 : 223;
- _vm->display()->palFadeIn(0, end, _currentRoom, joe->active, joe->x, joe->y);
+ _vm->display()->palFadeIn(_currentRoom, joe->active, joe->x, joe->y);
}
if (mode != RDM_FADE_NOJOE && joeX() != 0 && joeY() != 0) {
int16 jx = joeX();
@@ -1218,7 +1213,7 @@ void Logic::handlePinnacleRoom() {
joe->animating = piton->animating = false;
_vm->update();
- _vm->display()->palFadeIn(0, 223, ROOM_JUNGLE_PINNACLE, joe->active, joe->x, joe->y);
+ _vm->display()->palFadeIn(ROOM_JUNGLE_PINNACLE, joe->active, joe->x, joe->y);
_entryObj = 0;
uint16 prevObj = 0;
@@ -1291,7 +1286,7 @@ void Logic::handlePinnacleRoom() {
// camera follows Joe again
_vm->graphics()->putCameraOnBob(0);
- _vm->display()->palFadeOut(0, 223, ROOM_JUNGLE_PINNACLE);
+ _vm->display()->palFadeOut(ROOM_JUNGLE_PINNACLE);
}
void Logic::update() {
@@ -1821,7 +1816,7 @@ void Logic::asmScaleEnding() {
for (i = 0; i < 50; ++i) {
_vm->update();
}
- _vm->display()->palFadeOut(0, 255, currentRoom());
+ _vm->display()->palFadeOut(_currentRoom);
}
void Logic::asmWaitForCarPosition() {