From 324510f40d4ef4f3013f23608360538a9ccf7b9d Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 3 Dec 2011 13:13:08 +0000 Subject: [PATCH] Mapster32: when having some sectors highlighted, also show how many walls they contain in total. git-svn-id: https://svn.eduke32.com/eduke32@2144 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index f76e79e5a..c2c055d43 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -129,7 +129,7 @@ static int32_t tempxyar[MAXWALLS][2]; static int32_t mousx, mousy; int16_t prefixtiles[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; uint8_t hlsectorbitmap[MAXSECTORS>>3]; // show2dsector is already taken... -static int32_t minhlsectorfloorz = 0; +static int32_t minhlsectorfloorz, numhlsecwalls; static uint8_t visited[MAXWALLS>>3]; // used for AlignWalls and trace_loop @@ -1993,6 +1993,7 @@ void update_highlightsector(void) int32_t i; minhlsectorfloorz = INT32_MAX; + numhlsecwalls = 0; highlightsectorcnt = 0; for (i=0; i0) - Bsprintf(snotbuf, "%d sectors selected", highlightsectorcnt); + Bsprintf(snotbuf, "%d sectors with a total of %d walls selected", highlightsectorcnt, numhlsecwalls); else snotbuf[0] = 0;