From dc049cdf415fad6d7b70f30e12174411dd1fa8fb Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 8 Apr 2019 06:28:18 +0000 Subject: [PATCH] SW: Fix -Wmisleading-indentation git-svn-id: https://svn.eduke32.com/eduke32@7532 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/sw/src/scrip2.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/sw/src/scrip2.cpp b/source/sw/src/scrip2.cpp index b5887a2cc..96dc8fe99 100644 --- a/source/sw/src/scrip2.cpp +++ b/source/sw/src/scrip2.cpp @@ -604,7 +604,8 @@ void LoadCustomInfoFromScript(const char *filename) case CM_MAP: { char *mapnumptr; - if (scriptfile_getnumber(script, &curmap)) break; mapnumptr = script->ltextptr; + if (scriptfile_getnumber(script, &curmap)) break; + mapnumptr = script->ltextptr; if (scriptfile_getbraces(script, &braceend)) break; // first map file in LevelInfo[] is bogus, last map file is NULL @@ -696,7 +697,8 @@ void LoadCustomInfoFromScript(const char *filename) case CM_EPISODE: { char *epnumptr; - if (scriptfile_getnumber(script, &curmap)) break; epnumptr = script->ltextptr; + if (scriptfile_getnumber(script, &curmap)) break; + epnumptr = script->ltextptr; if (scriptfile_getbraces(script, &braceend)) break; // first map file in LevelInfo[] is bogus, last map file is NULL @@ -746,7 +748,8 @@ void LoadCustomInfoFromScript(const char *filename) case CM_SKILL: { char *epnumptr; - if (scriptfile_getnumber(script, &curmap)) break; epnumptr = script->ltextptr; + if (scriptfile_getnumber(script, &curmap)) break; + epnumptr = script->ltextptr; if (scriptfile_getbraces(script, &braceend)) break; // first map file in LevelInfo[] is bogus, last map file is NULL @@ -848,7 +851,8 @@ void LoadCustomInfoFromScript(const char *filename) char *name = NULL; int amt = -1; - if (scriptfile_getsymbol(script, &in)) break; invnumptr = script->ltextptr; + if (scriptfile_getsymbol(script, &in)) break; + invnumptr = script->ltextptr; if (scriptfile_getbraces(script, &braceend)) break; if ((unsigned)--in >= (unsigned)InvDecl_TOTAL) @@ -899,7 +903,8 @@ void LoadCustomInfoFromScript(const char *filename) int maxammo = -1, damagemin = -1, damagemax = -1, pickup = -1, wpickup = -1; int in,id; - if (scriptfile_getsymbol(script, &in)) break; wpnnumptr = script->ltextptr; + if (scriptfile_getsymbol(script, &in)) break; + wpnnumptr = script->ltextptr; if (scriptfile_getbraces(script, &braceend)) break; if ((unsigned)--in >= (unsigned)SIZ(weaponmap))