git-svn-id: https://svn.eduke32.com/eduke32@757 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-06-02 21:35:51 +00:00
parent 2dbbf9c505
commit 53577209f5
2 changed files with 7 additions and 6 deletions

View file

@ -10973,7 +10973,7 @@ void clear2dscreen(void)
// //
void draw2dgrid(int posxe, int posye, short ange, int zoome, short gride) void draw2dgrid(int posxe, int posye, short ange, int zoome, short gride)
{ {
int i, xp1, yp1, xp2=0, yp2, tempy; int64 i, xp1, yp1, xp2=0, yp2, tempy;
UNREFERENCED_PARAMETER(ange); UNREFERENCED_PARAMETER(ange);

View file

@ -5639,7 +5639,7 @@ static void Keys2d(void)
else _printmessage16(""); else _printmessage16("");
} }
if (opointhighlight != pointhighlight || olinehighlight != linehighlight || ocursectornum != cursectornum) if (bstatus&1 || opointhighlight != pointhighlight || olinehighlight != linehighlight || ocursectornum != cursectornum)
{ {
if (pointhighlight >= 16384) if (pointhighlight >= 16384)
{ {
@ -5657,6 +5657,7 @@ static void Keys2d(void)
clearmidstatbar16(); clearmidstatbar16();
showsectordata((short)cursectornum); showsectordata((short)cursectornum);
} }
else clearmidstatbar16();
opointhighlight = pointhighlight; opointhighlight = pointhighlight;
olinehighlight = linehighlight; olinehighlight = linehighlight;
ocursectornum = cursectornum; ocursectornum = cursectornum;
@ -5672,12 +5673,12 @@ static void Keys2d(void)
if (sprite[i].picnum == 5 /*&& zoom >= 256*/ && sprite[i].sectnum != MAXSECTORS) if (sprite[i].picnum == 5 /*&& zoom >= 256*/ && sprite[i].sectnum != MAXSECTORS)
{ {
radius = mulscale15(sprite[i].hitag,zoom); radius = mulscale15(sprite[i].hitag,zoom);
col = 14; col = 6;
if (i+16384 == pointhighlight) if (i+16384 == pointhighlight)
if (totalclock & 32) col -= (2<<2); if (totalclock & 32) col += (2<<2);
drawlinepat = 0xf0f0f0f0; // drawlinepat = 0xf0f0f0f0;
drawcircle16(halfxdim16+xp1, midydim16+yp1, radius, col); drawcircle16(halfxdim16+xp1, midydim16+yp1, radius, col);
drawlinepat = 0xffffffff; // drawlinepat = 0xffffffff;
} }
} }
enddrawing(); enddrawing();