parent
4cbe05a25c
commit
3eff56211d
|
|
@ -268,6 +268,11 @@ EntityClass *Eclass_InitFromText( const char *text ){
|
|||
if ( !p ) {
|
||||
break;
|
||||
}
|
||||
if( string_equal( Get_COM_Token(), "-" )
|
||||
|| string_equal( Get_COM_Token(), "x" )
|
||||
|| string_equal_prefix_nocase( Get_COM_Token(), "unused" ) ){
|
||||
continue;
|
||||
}
|
||||
strncpy( e->flagnames[i], Get_COM_Token(), std::size( e->flagnames[i] ) - 1 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user