less annoying visualisation for tagclips

- press B to get the former filled volume view
- raise the value of tagnumfull to get both views simultaneously
- cubescript parameters should be cleaned up before release
This commit is contained in:
ac-stef
2014-01-30 19:38:41 +01:00
parent a8d2ab1c65
commit d258b7c186
7 changed files with 69 additions and 4 deletions
+20
View File
@@ -252,6 +252,26 @@ void render_seg_new(float vx, float vy, float vh, int mip, int x, int y, int xs,
render_wall(s, v, xx, yy+1, xx+1, yy+1, mip, v, u, true, 3); // bot
}
}}
extern vector<short> tagclipcubes;
extern bool showtagclipfocus;
extern int showtagclips;
if(editmode && !showtagclipfocus && showtagclips) LOOPH continue; // tag clips
loopi(1<<mip)
{
int iy = (yy<<mip) + i;
loopj(1<<mip)
{
int ix = (xx<<mip) + j;
sqr *t = S(ix, iy);
if(!SOLID(t) && t->tag & TAGANYCLIP)
{
tagclipcubes.add(ix);
tagclipcubes.add(iy);
}
}
}
}}
}
void distlod(int &low, int &high, int angle, float widef)