Merge pull request #34 from wongit/spawnflags-tips

fix for spawnflags tooltips: now showing when bits are skipped
This commit is contained in:
Garux
2020-02-22 01:41:09 +03:00
committed by GitHub

View File

@@ -1055,7 +1055,7 @@ void SurfaceFlags_setEntityClass( EntityClass* eclass ){
gtk_label_set_text( GTK_LABEL( GTK_BIN( widget )->child ), str.c_str() );
if( const EntityClassAttribute* attribute = eclass->flagAttributes[i] ){
if( const EntityClassAttribute* attribute = eclass->flagAttributes[spawn_table[i]] ){
EntityAttribute_setTooltip( widget, attribute->m_name.c_str(), attribute->m_description.c_str() );
}
}