From 52bab772ec9e1b14be5124720751e737f1608606 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 5 Oct 2003 07:29:31 +0000 Subject: [PATCH] Fixing non-compilable state of the game --- src/eressea/korrektur.c | 6 +++--- src/eressea/main.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index 4c9d83e63..05d7d6cb1 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -1321,9 +1321,9 @@ stats(void) for (itype=itemtypes;itype;itype=itype->next) { stats_t * itm = s_find(items, itype); if (itm && itm->number>0.0) - fprintf(F, "%4.0lf %s\n", itm->number, locale_string(NULL, resourcename(itype->rtype, 0))); + fprintf(F, "%4.0f %s\n", itm->number, locale_string(NULL, resourcename(itype->rtype, 0))); else - fprintf(F, "%4.0lf %s\n", 0.0, locale_string(NULL, resourcename(itype->rtype, 0))); + fprintf(F, "%4.0f %s\n", 0.0, locale_string(NULL, resourcename(itype->rtype, 0))); } fclose(F); } else { @@ -2835,7 +2835,7 @@ korrektur(void) #ifdef ENHANCED_QUIT no_teurefremde(0); #else - no_teurefremde(1) + no_teurefremde(1); #endif update_igjarjuk_quest(); fix_allies(); diff --git a/src/eressea/main.c b/src/eressea/main.c index 13dc53866..148567ea4 100644 --- a/src/eressea/main.c +++ b/src/eressea/main.c @@ -147,7 +147,7 @@ crwritemap(void) } static void -game_init(const char *executable_name) +game_init(void) { init_triggers(); init_xmas(); @@ -163,7 +163,7 @@ game_init(const char *executable_name) register_spells(); register_dungeon(); - init_data(xmlfile?xmlfile:executable_name); + init_data(xmlfile?xmlfile:"eressea.xml"); init_locales(); init_attributes(); @@ -690,7 +690,7 @@ main(int argc, char *argv[]) if ((i=read_datenames(zText))!=0) return i; kernel_init(); - game_init(basename(argv[0])); + game_init(); #if defined(BETA_CODE) /* xml_writeships(); */ /* xml_writebuildings(); */