From: Holger Schemel Date: Sun, 8 Sep 2002 09:39:10 +0000 (+0200) Subject: rnd-20020908-1-src X-Git-Tag: 3.0.0^2~247 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=dce27fe1c087a26e6dac4ef6367012c51810f327;p=rocksndiamonds.git rnd-20020908-1-src --- diff --git a/Makefile b/Makefile index f4921768..9ba6b4d5 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,8 @@ CROSS_PATH_WIN32=/usr/local/cross-tools/i386-mingw32msvc SRC_DIR = src MAKE_CMD = $(MAKE) -C $(SRC_DIR) -DEFAULT_TARGET = sdl +DEFAULT_TARGET = x11 +# DEFAULT_TARGET = sdl all: @$(MAKE_CMD) TARGET=$(DEFAULT_TARGET) diff --git a/src/conftime.h b/src/conftime.h index 551ee18b..23db0bd8 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2002-09-07 15:04]" +#define COMPILE_DATE_STRING "[2002-09-08 11:38]" diff --git a/src/libgame/gadgets.c b/src/libgame/gadgets.c index 9d709f3a..77eb4718 100644 --- a/src/libgame/gadgets.c +++ b/src/libgame/gadgets.c @@ -63,6 +63,21 @@ static int getNewGadgetID() return id; } +#if 0 +void DUMP_GADGET_MAP_STATE() +{ + struct GadgetInfo *gi = gadget_list_first_entry; + + while (gi) + { + printf("-XXX-1-> '%s': %s\n", + gi->info_text, (gi->mapped ? "mapped" : "not mapped")); + + gi = gi->next; + } +} +#endif + static struct GadgetInfo *getGadgetInfoFromMousePosition(int mx, int my) { struct GadgetInfo *gi = gadget_list_first_entry; diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 498a96e8..f140d460 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -1362,7 +1362,7 @@ struct FileInfo *getFileListFromConfigList(struct ConfigInfo *config_list, { struct FileInfo *file_list; int num_suffix_list_entries = 0; - int list_pos = -1; + int list_pos = 0; int i, j; file_list = checked_calloc(num_file_list_entries * sizeof(struct FileInfo)); @@ -1373,9 +1373,9 @@ struct FileInfo *getFileListFromConfigList(struct ConfigInfo *config_list, /* always start with reliable default values */ for (i=0; i 0) { @@ -1416,7 +1416,8 @@ struct FileInfo *getFileListFromConfigList(struct ConfigInfo *config_list, if (is_file_entry) { - list_pos++; + if (i > 0) + list_pos++; if (list_pos >= num_file_list_entries) Error(ERR_EXIT, "inconsistant config list information -- please fix"); @@ -1464,8 +1465,11 @@ static void LoadArtworkConfig(struct ArtworkListInfo *artwork_info) { for (i=0; itype].text, 120, FC_GREEN); #if 0 - printf("DEBUG: reloading %d sounds ...\n", num_file_list_entries); + printf("DEBUG: reloading %d artwork files ...\n", num_file_list_entries); #endif for(i=0; itype].do_it) DrawInitText(file_list[i].token, 150, FC_YELLOW); - if (file_list[i].filename) - LoadArtworkToList(artwork_info, file_list[i].filename, i); - else - LoadArtworkToList(artwork_info, file_list[i].default_filename, i); + LoadArtworkToList(artwork_info, file_list[i].filename, i); } draw_init[artwork_info->type].do_it = FALSE;