in .def ent defs treat -, x & unused* spawnflags as dummy

#150
This commit is contained in:
Garux
2023-09-19 17:03:35 +06:00
parent 4cbe05a25c
commit 3eff56211d
2 changed files with 6 additions and 1 deletions

View File

@@ -856,7 +856,7 @@ void SpawnFlags_setEntityClass( EntityClass* eclass ){
// do a first pass to count the spawn flags, don't touch the widgets, we don't know in what state they are
for ( int i = 0; i < MAX_FLAGS; i++ )
{
if ( eclass->flagnames[i][0] != 0 && strcmp( eclass->flagnames[i], "-" ) ) {
if ( !string_empty( eclass->flagnames[i] ) ) {
spawn_table[g_spawnflag_count++] = i;
}
// hide all boxes