mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
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
This commit is contained in:
parent
c38d4f46f7
commit
324510f40d
1 changed files with 4 additions and 2 deletions
|
@ -129,7 +129,7 @@ static int32_t tempxyar[MAXWALLS][2];
|
||||||
static int32_t mousx, mousy;
|
static int32_t mousx, mousy;
|
||||||
int16_t prefixtiles[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
|
int16_t prefixtiles[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
|
||||||
uint8_t hlsectorbitmap[MAXSECTORS>>3]; // show2dsector is already taken...
|
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
|
static uint8_t visited[MAXWALLS>>3]; // used for AlignWalls and trace_loop
|
||||||
|
|
||||||
|
@ -1993,6 +1993,7 @@ void update_highlightsector(void)
|
||||||
int32_t i;
|
int32_t i;
|
||||||
|
|
||||||
minhlsectorfloorz = INT32_MAX;
|
minhlsectorfloorz = INT32_MAX;
|
||||||
|
numhlsecwalls = 0;
|
||||||
|
|
||||||
highlightsectorcnt = 0;
|
highlightsectorcnt = 0;
|
||||||
for (i=0; i<numsectors; i++)
|
for (i=0; i<numsectors; i++)
|
||||||
|
@ -2000,6 +2001,7 @@ void update_highlightsector(void)
|
||||||
{
|
{
|
||||||
highlightsector[highlightsectorcnt++] = i;
|
highlightsector[highlightsectorcnt++] = i;
|
||||||
minhlsectorfloorz = min(minhlsectorfloorz, sector[i].floorz);
|
minhlsectorfloorz = min(minhlsectorfloorz, sector[i].floorz);
|
||||||
|
numhlsecwalls += sector[i].wallnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (highlightsectorcnt==0)
|
if (highlightsectorcnt==0)
|
||||||
|
@ -9670,7 +9672,7 @@ void printcoords16(int32_t posxe, int32_t posye, int16_t ange)
|
||||||
Bsprintf(snotbuf, "%d sprites, %d walls selected", m, highlightcnt-m);
|
Bsprintf(snotbuf, "%d sprites, %d walls selected", m, highlightcnt-m);
|
||||||
}
|
}
|
||||||
else if (highlightsectorcnt>0)
|
else if (highlightsectorcnt>0)
|
||||||
Bsprintf(snotbuf, "%d sectors selected", highlightsectorcnt);
|
Bsprintf(snotbuf, "%d sectors with a total of %d walls selected", highlightsectorcnt, numhlsecwalls);
|
||||||
else
|
else
|
||||||
snotbuf[0] = 0;
|
snotbuf[0] = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue