adjust several exit states

This commit is contained in:
Ondřej Novák 2025-08-08 19:44:57 +02:00
parent a71850368d
commit 4211f044ed
5 changed files with 5 additions and 102 deletions

View file

@ -174,7 +174,7 @@ static void error(const char *text)
SEND_LOG("(ERROR) %s : %s",popis,text);
closemode();
display_error(popis);
exit(0);
exit(1);
}
static void ex_error(char znak)

View file

@ -171,7 +171,7 @@ void load_items()
{
closemode();
display_error("Selhalo otevreni souboru ITEMS.DAT. Zkotroluj zda vubec existuje.");
exit(0);
exit(1);
}
do
{
@ -966,7 +966,7 @@ void definuj_postavy()
{
closemode();
display_error("Error in file POSTAVY.DAT. May be missing a parameter in some definition.");
exit(0);
exit(1);
}
c=strchr(c,'\n')+1;
prepocitat_postavu(p);

View file

@ -430,7 +430,7 @@ int load_map(const char *filename)
{
closemode();
display_error("Bug in temp file. Please purge some status blocks in last load savegame file.");
exit(0);
exit(1);
}
doNotLoadMapState=0;
current_map_hash = fnv1a_hash(filename);