From 48e9b22b4f0d0cf37a33fc7e6cd91ab3242ef410 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 24 Jun 2017 21:18:18 +0000 Subject: [PATCH] More standalone stuff git-svn-id: https://svn.eduke32.com/eduke32@6273 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/config.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/duke3d/src/config.cpp b/source/duke3d/src/config.cpp index 728cc8bd5..3b733c543 100644 --- a/source/duke3d/src/config.cpp +++ b/source/duke3d/src/config.cpp @@ -248,8 +248,10 @@ void CONFIG_SetDefaults(void) if (g_rtsNamePtr == NULL) Bstrcpy(ud.rtsname, G_DefaultRtsFile()); - Bstrcpy(szPlayerName, "Duke"); + Bstrcpy(szPlayerName, "Player"); + +#ifndef EDUKE32_STANDALONE Bstrcpy(ud.ridecule[0], "An inspiration for birth control."); Bstrcpy(ud.ridecule[1], "You're gonna die for that!"); Bstrcpy(ud.ridecule[2], "It hurts to be you."); @@ -260,6 +262,7 @@ void CONFIG_SetDefaults(void) Bstrcpy(ud.ridecule[7], "Ha ha ha... wasted!"); Bstrcpy(ud.ridecule[8], "You suck!"); Bstrcpy(ud.ridecule[9], "AARRRGHHHHH!!!"); +#endif // JBF 20031211 @@ -717,8 +720,7 @@ void CONFIG_WriteSetup(uint32_t flags) if (g_grpNamePtr && !g_addonNum) SCRIPT_PutString(ud.config.scripthandle, "Setup","SelectedGRP",g_grpNamePtr); - // XXX: should be "if compiled without startup GUI" -#if !defined __linux || defined HAVE_GTK2 +#ifdef STARTUP_SETUP_WINDOW if (g_noSetup == 0) SCRIPT_PutString(ud.config.scripthandle, "Setup","ModDir",&g_modDir[0]); #endif @@ -899,8 +901,8 @@ static void CONFIG_GetMD4EntryName(char m[], uint8_t const * const md4) int32_t CONFIG_GetMapBestTime(char const * const mapname, uint8_t const * const mapmd4) { - if (!ud.config.setupread) return -1; - if (ud.config.scripthandle < 0) return -1; + if (!ud.config.setupread || ud.config.scripthandle < 0) + return -1; char m[37]; CONFIG_GetMD4EntryName(m, mapmd4);