* render direction arrow for group entities, having angle/angles key set or having angle/angles/direction attribute in .ent

draw condition relies on entity.getKeyValue, which also provides default values; thus removed default "0" for all group entities in .def loader
mind to add entity.getOnlySpecifiedKeyValue func or perform by visitor?
This commit is contained in:
Garux
2018-08-16 20:00:58 +03:00
parent 6ad88b42fa
commit c5f2279f4a
8 changed files with 91 additions and 28 deletions

View File

@@ -280,7 +280,7 @@ EntityClass *Eclass_InitFromText( const char *text ){
e->m_modelpath = buffer.c_str();
if ( !e->fixedsize ) {
EntityClass_insertAttribute( *e, "angle", EntityClassAttribute( "direction", "Direction", "0" ) );
EntityClass_insertAttribute( *e, "angle", EntityClassAttribute( "direction", "Direction" ) );
}
else
{