support .fgd color1 key type

#115
This commit is contained in:
Garux 2023-09-20 08:10:23 +06:00
parent b21d2cbf1d
commit a9a9907eab

View File

@ -463,6 +463,7 @@ void EntityClassFGD_parseClass( Tokeniser& tokeniser, bool fixedsize, bool isBas
|| string_equal_nocase( type.c_str(), "studio" )
|| string_equal_nocase( type.c_str(), "sprite" )
|| string_equal_nocase( type.c_str(), "color255" )
|| string_equal_nocase( type.c_str(), "color1" )
|| string_equal_nocase( type.c_str(), "target_source" )
|| string_equal_nocase( type.c_str(), "target_destination" )
|| string_equal_nocase( type.c_str(), "sound" )
@ -490,6 +491,9 @@ void EntityClassFGD_parseClass( Tokeniser& tokeniser, bool fixedsize, bool isBas
if ( string_equal_nocase( type.c_str(), "studio" ) ) {
attributeType = "model";
}
else if ( string_equal_nocase( type.c_str(), "color1" ) ) {
attributeType = "color";
}
EntityClassAttribute attribute;
attribute.m_type = attributeType;