mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Formatting
git-svn-id: https://svn.eduke32.com/eduke32@1448 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ad3b34c49b
commit
f2aa52ac07
1 changed files with 583 additions and 568 deletions
|
@ -264,11 +264,10 @@ void create_map_snapshot(void)
|
|||
else
|
||||
{
|
||||
int32_t i = 0;
|
||||
spritetype *spri, *tspri = (spritetype *)Bcalloc(1, sizeof(spritetype) * numsprites);
|
||||
spritetype *tspri = (spritetype *)Bcalloc(1, sizeof(spritetype) * numsprites),
|
||||
*spri = &tspri[0];
|
||||
mapstate->sprites = (spritetype *)Bcalloc(1, sizeof(spritetype) * numsprites);
|
||||
|
||||
spri = &tspri[0];
|
||||
|
||||
for (j=0; j<MAXSPRITES && i < numsprites; j++)
|
||||
{
|
||||
if (sprite[j].statnum != MAXSTATUS)
|
||||
|
@ -7499,11 +7498,13 @@ static void Keys2d(void)
|
|||
cursectornum = -1;
|
||||
|
||||
for (i=0; i<numsectors; i++)
|
||||
{
|
||||
if (inside(mousxplc,mousyplc,i) == 1)
|
||||
{
|
||||
cursectornum = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
searchsector=cursectornum;
|
||||
|
||||
|
@ -7528,6 +7529,19 @@ static void Keys2d(void)
|
|||
showsectordata((int16_t)i+16384);
|
||||
}
|
||||
else if (!(keystatus[KEYSC_F5]|keystatus[KEYSC_F6]|keystatus[KEYSC_F7]|keystatus[KEYSC_F8]))
|
||||
{
|
||||
static int32_t counter = 0;
|
||||
static int32_t opointhighlight, olinehighlight, ocursectornum;
|
||||
|
||||
if (pointhighlight == opointhighlight && linehighlight == olinehighlight && cursectornum == ocursectornum)
|
||||
counter++;
|
||||
else counter = 0;
|
||||
|
||||
opointhighlight = pointhighlight;
|
||||
olinehighlight = linehighlight;
|
||||
ocursectornum = cursectornum;
|
||||
|
||||
if (counter >= 40)
|
||||
{
|
||||
if (pointhighlight >= 16384)
|
||||
{
|
||||
|
@ -7550,6 +7564,7 @@ static void Keys2d(void)
|
|||
{
|
||||
showsectordata((int16_t)cursectornum+16384);
|
||||
}
|
||||
}
|
||||
if (totalclock < (lastpm16time + 120*2))
|
||||
_printmessage16(lastpm16buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue