aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Göffringmann2003-12-18 00:31:37 +0000
committerRobert Göffringmann2003-12-18 00:31:37 +0000
commit8b0ab955803b8a452d05152edcc99ef38c15f5a6 (patch)
treee3de958d7003eeaed661167d1b0d1a60c21c6a31
parent1698437409d8e15c9653256156a5d50d92f474ac (diff)
downloadscummvm-rg350-8b0ab955803b8a452d05152edcc99ef38c15f5a6.tar.gz
scummvm-rg350-8b0ab955803b8a452d05152edcc99ef38c15f5a6.tar.bz2
scummvm-rg350-8b0ab955803b8a452d05152edcc99ef38c15f5a6.zip
fixed stupid palette bugs
svn-id: r11724
-rw-r--r--sword1/logic.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sword1/logic.cpp b/sword1/logic.cpp
index 10ea42eb43..17af830fcc 100644
--- a/sword1/logic.cpp
+++ b/sword1/logic.cpp
@@ -84,7 +84,7 @@ void SwordLogic::newScreen(uint32 screen) {
}
void SwordLogic::engine(void) {
- debug(5, "\n\nNext logic cycle");
+ debug(8, "\n\nNext logic cycle");
_eventMan->serviceGlobalEventList();
for (uint16 sectCnt = 0; sectCnt < TOTAL_SECTIONS; sectCnt++) {
@@ -861,13 +861,12 @@ int SwordLogic::fnCheckFade(BsObject *cpt, int32 id, int32 c, int32 d, int32 e,
}
int SwordLogic::fnSetSpritePalette(BsObject *cpt, int32 id, int32 spritePal, int32 d, int32 e, int32 f, int32 z, int32 x) {
- _screen->fnSetPalette(184, 72, id, false);
- _resMan->resClose(spritePal);
+ _screen->fnSetPalette(184, 72, spritePal, false);
return SCRIPT_CONT;
}
int SwordLogic::fnSetWholePalette(BsObject *cpt, int32 id, int32 spritePal, int32 d, int32 e, int32 f, int32 z, int32 x) {
- _screen->fnSetPalette(0, 256, id, false);
+ _screen->fnSetPalette(0, 256, spritePal, false);
return SCRIPT_CONT;
}
@@ -875,16 +874,17 @@ int SwordLogic::fnSetFadeTargetPalette(BsObject *cpt, int32 id, int32 spritePal,
uint8 *pal = (uint8*)_resMan->openFetchRes(spritePal);
pal[0] = pal[1] = pal[2] = 0;
_resMan->resClose(spritePal);
+ warning("fnSetFadeTargetPalette(xx, %d, %X, %d)", id, spritePal, d);
return SCRIPT_CONT;
}
int SwordLogic::fnSetPaletteToFade(BsObject *cpt, int32 id, int32 c, int32 d, int32 e, int32 f, int32 z, int32 x) {
- warning("called unknown routine: fnSetPaletteToFade()");
+ warning("fnSetPaletteToFade(xx, %d, %d, %d, %d)", id, c, d, e);
return SCRIPT_CONT;
}
int SwordLogic::fnSetPaletteToCut(BsObject *cpt, int32 id, int32 c, int32 d, int32 e, int32 f, int32 z, int32 x) {
- warning("Called unknown routine: fnSetPaletteToCut()");
+ warning("fnSetPaletteToCut(xx, %d, %d, %d, %d)", id, c, d, e);
return SCRIPT_CONT;
}