cleanup edithide

- replace by simple bitmask
- rewrite showedithide, setedithide and seteditshow in cubescript
- menu added for convenient use

setedithide and seteditshow no longer accept entity type numbers as
parameters - only entity type names

showedithide, setedithide and seteditshow are considered deprecated

  edithideentmask

    Integer variable containing a bitmask of hidden entity types.

DOCREF showedithide setedithide seteditshow edithideentmask
This commit is contained in:
ac-stef
2017-05-31 03:00:38 +02:00
parent a4cb82b25c
commit 954fe7ee7f
6 changed files with 50 additions and 64 deletions
+1 -3
View File
@@ -175,9 +175,7 @@ int closestent() // used for delent and edit mode ent display
entity &e = ents[i];
if(e.type==NOTUSED) continue;
if(clenttype != NOTUSED && e.type != clenttype) continue;
bool ice = false;
loopk(eh_ents.length()) if(eh_ents[k]==e.type) ice = true;
if(ice) continue;
if(edithideentmask & (1 << (e.type - 1))) continue;
if(!intersectangular(camera1->o, worldpos, vec(e.x, e.y, e.z), maxangle, dist)) continue;
if(j)
{