From d741df358df254ff3e200d2239582c565e7f2bd5 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 17 Jun 2012 19:45:48 +0000 Subject: [PATCH] Mapster32: display zero-length walls as level-3 corruptions. git-svn-id: https://svn.eduke32.com/eduke32@2767 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index cadfab98a..ec5dfcb41 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -11673,6 +11673,9 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing) if (nw>=w0 && nw<=endwall) CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL[%d].NEXTWALL is its own sector's wall", j); + if (wall[j].x==POINT2(j).x && wall[j].y==POINT2(j).y) + CORRUPTCHK_PRINT(3, CORRUPT_WALL|j, "WALL[%d] has length 0", j); + #ifdef YAX_ENABLE { int32_t cf, ynw, ynwp2;