Commits

Anonymous committed ab436f1

Removed debug prints for each resource load (wav files are loaded each time they are used). Now defaults to 320x240 res.

Comments (0)

Files changed (4)

 	SDL_Surface *image_bmp;
 	char local_path[MYMAXPATH];
 	
+#ifdef DEBUG
 	printf("Budu nahravat obrazek %s\n", path);
+#endif /* DEBUG */
 	sprintf(local_path, "%s%s", GFXPATH, path);
 	image_bmp = SDL_LoadBMP(local_path);
 	if (image_bmp == NULL) {
 	SDL_Surface *surface;
 	char local_path[MYMAXPATH];
 
+#ifdef DEBUG
 	printf("Budu nahravat obrazek %s\n", path);
+#endif /* DEBUG */
 	sprintf(local_path, "%s%s", GFXPATH, path);
 
 	image_bmp = SDL_LoadBMP(local_path);
 {
 	Mix_Chunk *wav;
 
+#ifdef DEBUG
 	printf("Budu nahravat wav %s\n", path);
+#endif /* DEBUG */
 	wav = Mix_LoadWAV(path);
 #ifndef SHIPS_IGNORE_SOUND_FAILURE
 	if (wav == NULL) {
 CFLAGS = $(shell sdl-config --cflags) -O3 #-pg #-g # -DNDEBUG
 CFLAGS += -DSHIPS_IGNORE_SOUND_FAILURE
 CFLAGS += -DMYMAXPATH=255
-CFLAGS += -DSCREEN_WIDTH=640 -DSCREEN_HEIGHT=480 # -DGFXDIR=gfx640x480
-#CFLAGS += -DSCREEN_WIDTH=320 -DSCREEN_HEIGHT=240 # -DGFXDIR=gfx320x240
+#CFLAGS += -DSCREEN_WIDTH=640 -DSCREEN_HEIGHT=480 # -DGFXDIR=gfx640x480
+CFLAGS += -DSCREEN_WIDTH=320 -DSCREEN_HEIGHT=240 # -DGFXDIR=gfx320x240
 #define GFXDIR "gfx640x480"
 #define GFXDIR "gfx320x240"
-CFLAGS += -DDEBUG
+#CFLAGS += -DDEBUG
 
 
 # Warning flags for C programs
Binary file modified.