Skip to content

Commit

Permalink
Fix: Font selection dialogue shown even for headless server
Browse files Browse the repository at this point in the history
Headless server does not need a font as it's never shown anyway.

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11127 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
ceeac committed Apr 6, 2024
1 parent f459a14 commit 92d996e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simutrans/simmain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,7 @@ int simu_main(int argc, char** argv)
}
}

#if COLOUR_DEPTH != 0
// now find out if there is a valid font
{
const utf8 *new_world = (const utf8 *)translator::translate("Beenden");
Expand All @@ -1222,6 +1223,7 @@ int simu_main(int argc, char** argv)
destroy_win(sel);
}
}
#endif

bool new_world = true;
std::string loadgame;
Expand Down

0 comments on commit 92d996e

Please sign in to comment.