From 89fe17e673d9ad6c9fffc7e8976db59655b2b38d Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 18 Nov 2018 18:09:04 +0000 Subject: [PATCH] This does nothing but fix indentation of a single block of code git-svn-id: https://svn.eduke32.com/eduke32@7183 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index 87a1225db..3c4aaf001 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -5940,27 +5940,24 @@ static void G_Startup(void) if (numplayers > 1) initprintf("Multiplayer initialized.\n"); + char *cwd; + + if (g_modDir[0] != '/' && (cwd = getcwd(NULL, 0))) { - char *cwd; - - if (g_modDir[0] != '/' && (cwd = getcwd(NULL, 0))) + Bchdir(g_modDir); + if (artLoadFiles("tiles000.art", MAXCACHE1DSIZE) < 0) { - Bchdir(g_modDir); - if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0) - { - Bchdir(cwd); - if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0) - G_GameExit("Failed loading art."); - } Bchdir(cwd); -#ifndef __ANDROID__ //This crashes on *some* Android devices. Small onetime memory leak. TODO fix above function - Bfree(cwd); -#endif - + if (artLoadFiles("tiles000.art", MAXCACHE1DSIZE) < 0) + G_GameExit("Failed loading art."); } - else if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0) - G_GameExit("Failed loading art."); + Bchdir(cwd); +#ifndef __ANDROID__ //This crashes on *some* Android devices. Small onetime memory leak. TODO fix above function + Bfree(cwd); +#endif } + else if (artLoadFiles("tiles000.art",MAXCACHE1DSIZE) < 0) + G_GameExit("Failed loading art."); // Make the fullscreen nuke logo background non-fullbright. Has to be // after dynamic tile remapping (from C_Compile) and loading tiles.