Formatting

git-svn-id: https://svn.eduke32.com/eduke32@1448 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2009-06-29 19:07:32 +00:00
parent ad3b34c49b
commit f2aa52ac07

View file

@ -264,11 +264,10 @@ void create_map_snapshot(void)
else else
{ {
int32_t i = 0; 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); mapstate->sprites = (spritetype *)Bcalloc(1, sizeof(spritetype) * numsprites);
spri = &tspri[0];
for (j=0; j<MAXSPRITES && i < numsprites; j++) for (j=0; j<MAXSPRITES && i < numsprites; j++)
{ {
if (sprite[j].statnum != MAXSTATUS) if (sprite[j].statnum != MAXSTATUS)
@ -7499,11 +7498,13 @@ static void Keys2d(void)
cursectornum = -1; cursectornum = -1;
for (i=0; i<numsectors; i++) for (i=0; i<numsectors; i++)
{
if (inside(mousxplc,mousyplc,i) == 1) if (inside(mousxplc,mousyplc,i) == 1)
{ {
cursectornum = i; cursectornum = i;
break; break;
} }
}
searchsector=cursectornum; searchsector=cursectornum;
@ -7528,6 +7529,19 @@ static void Keys2d(void)
showsectordata((int16_t)i+16384); showsectordata((int16_t)i+16384);
} }
else if (!(keystatus[KEYSC_F5]|keystatus[KEYSC_F6]|keystatus[KEYSC_F7]|keystatus[KEYSC_F8])) 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) if (pointhighlight >= 16384)
{ {
@ -7550,6 +7564,7 @@ static void Keys2d(void)
{ {
showsectordata((int16_t)cursectornum+16384); showsectordata((int16_t)cursectornum+16384);
} }
}
if (totalclock < (lastpm16time + 120*2)) if (totalclock < (lastpm16time + 120*2))
_printmessage16(lastpm16buf); _printmessage16(lastpm16buf);
} }