From 91f440378e24562d2103e341c759032e115138a9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 26 May 2018 10:37:01 +0300 Subject: [PATCH] - fixed minor issues with new line specials --- src/p_lnspec.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/p_lnspec.cpp b/src/p_lnspec.cpp index 9e2ef889e7..253f505e42 100644 --- a/src/p_lnspec.cpp +++ b/src/p_lnspec.cpp @@ -2782,7 +2782,7 @@ FUNC(LS_Line_SetAutomapFlags) int setflags = 0; int clearflags = 0; - for (int i = 0; flagtrans[i] != ML_PORTALCONNECT; i++, arg1 >>= 1, arg2 >>= 1) + for (int i = 0; flagtrans[i] != -1; i++, arg1 >>= 1, arg2 >>= 1) { if (arg1 & 1) setflags |= flagtrans[i]; if (arg2 & 1) clearflags |= flagtrans[i]; @@ -2799,9 +2799,10 @@ FUNC(LS_Line_SetAutomapFlags) } FUNC(LS_Line_SetAutomapStyle) -// Line_SetAutomapStyle (id, setflags, clearflags) +// Line_SetAutomapStyle (id, style) { - if (arg1 < AMLS_COUNT && arg1 >= 0) { + if (arg1 < AMLS_COUNT && arg1 >= 0) + { FLineIdIterator itr(arg0); int line; while ((line = itr.Next()) >= 0)