return early out of R_StoreWallRange() if a line has no linedef

Only possible with XGLN/ZGLN nodes. Silence a buch of clang-tidy warnings.
This commit is contained in:
Fabian Greffrath 2024-10-29 09:29:53 +01:00
parent d3ccce3675
commit 6b4d22565e

View File

@ -539,9 +539,11 @@ void R_StoreWallRange(const int start, const int stop)
sidedef = curline->sidedef;
linedef = curline->linedef;
if (!linedef)
return;
// mark the segment as visible for auto map
if (linedef)
linedef->flags |= ML_MAPPED;
linedef->flags |= ML_MAPPED;
// [FG] update automap while playing
if (automap_on)