diff --git a/src/p_map.cpp b/src/p_map.cpp index 1230aedee8..9e927698b9 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -330,7 +330,7 @@ bool P_TeleportMove (AActor *thing, fixed_t x, fixed_t y, fixed_t z, bool telefr FBlockLinesIterator it(box); line_t *ld; - // P_LineOpening requires the thing's z to be the destination ú‹ order to work. + // P_LineOpening requires the thing's z to be the destination ín order to work. fixed_t savedz = thing->z; thing->z = z; while ((ld = it.Next())) diff --git a/src/p_maputl.cpp b/src/p_maputl.cpp index 187de226d7..9cd2a34b8c 100644 --- a/src/p_maputl.cpp +++ b/src/p_maputl.cpp @@ -721,15 +721,12 @@ line_t *FBlockLinesIterator::Next() { line_t *ld = &lines[*list]; + list++; if (ld->validcount != validcount) { ld->validcount = validcount; return ld; } - else - { - list++; - } } }