[Scummvm-cvs-logs] CVS: scummvm/sky screen.cpp,1.46,1.47

Robert G?ffringmann lavosspawn at users.sourceforge.net
Sun Jul 13 08:40:01 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv11556/sky

Modified Files:
	screen.cpp 
Log Message:
changed "sprite not loaded" printfs to debug()s.

Index: screen.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/screen.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- screen.cpp	12 Jul 2003 04:21:20 -0000	1.46
+++ screen.cpp	13 Jul 2003 15:38:59 -0000	1.47
@@ -272,7 +272,7 @@
 	if (pal) {
 		paletteFadeUp(pal);
 		free(pal);
-	} else printf("SkyScreen::paletteFadeUp: Can't load palette #%d\n",fileNr);
+	} else warning("SkyScreen::paletteFadeUp: Can't load palette #%d\n",fileNr);
 }
 
 void SkyScreen::paletteFadeUp(uint8 *pal) {
@@ -511,8 +511,7 @@
 							dataFileHeader *spriteData = 
 								(dataFileHeader *)SkyState::fetchItem(spriteComp->frame >> 6);
 							if (!spriteData) {
-								printf("Missing file %d!\n",spriteComp->frame >> 6);
-								//getchar();
+								debug(9,"Missing file %d!\n",spriteComp->frame >> 6);
 								spriteComp->status = 0;
 							} else {
 								sortList[spriteCnt].yCood = spriteComp->ycood + spriteData->s_offset_y + spriteData->s_height;
@@ -572,7 +571,7 @@
 						(spriteData->screen == SkyLogic::_scriptVariables[SCREEN])) {
 					uint8 *toBeDrawn = (uint8 *)SkyState::fetchItem(spriteData->frame >> 6);
 					if (!toBeDrawn) {
-						printf("Spritedata %d not loaded!\n",spriteData->frame >> 6);
+						debug(9, "Spritedata %d not loaded!\n",spriteData->frame >> 6);
 						spriteData->status = 0;
 					} else {
 						drawSprite(toBeDrawn, spriteData);





More information about the Scummvm-git-logs mailing list