diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 8604dd46..cbd1b256 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -79,37 +79,42 @@ COMMAND(showedithide, ARG_NONE); void setedithide(char *text) // FIXME: human indexing inside { - //int lop = 0; eh_ents.setsize(0); - const char *s = strtok(text, " "); - do - { - bool k = false; - int sn = -1; - int tn = atoi(s); - loopi(MAXENTTYPES) if(!strcmp(entnames[i], s)) sn = i; - if(sn!=-1) { loopv(eh_ents) { if(eh_ents[i]==sn) { k = true; } } } - else sn = tn; - if(!k) { if(sn>0 && sn0 && sn