From 52ccd82c1794a3a5c228b1bf22f398aeffd8d0d6 Mon Sep 17 00:00:00 2001 From: terminx <terminx@1a8010ca-5511-0410-912e-c29ae57300e0> Date: Tue, 9 Apr 2019 19:21:13 +0000 Subject: [PATCH] Fucking tabs git-svn-id: https://svn.eduke32.com/eduke32@7544 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 4d1a8aac8..df0ef583d 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -11068,14 +11068,14 @@ void updatesectorz(int32_t const x, int32_t const y, int32_t const z, int16_t * if ((unsigned)*sectnum >= (unsigned)numsectors) { - if ((unsigned)*sectnum < (unsigned)numsectors + MAXSECTORS) - { - *sectnum -= MAXSECTORS; - nofirstzcheck = true; - } - else + if ((unsigned)*sectnum < (unsigned)numsectors + MAXSECTORS) { - // we need to support passing in a sectnum of -1, unfortunately + *sectnum -= MAXSECTORS; + nofirstzcheck = true; + } + else + { + // we need to support passing in a sectnum of -1, unfortunately for (int i = numsectors - 1; i >= 0; --i) if (inside_z_p(x, y, z, i)) SET_AND_RETURN(*sectnum, i);