angle pointer by entity definition

This commit is contained in:
Pan 2018-01-27 00:54:01 +01:00
parent 4ace24c00a
commit 784e2de4e3

View file

@ -236,6 +236,14 @@ eclass_t *Eclass_InitFromText( char *text ){
e->nFrame = atoi( pFrame );
delete pFrame; //Hydra - Fixed memory leak!
}
char *pAngle = NULL;
setSpecialLoad( e, "eangle=", pAngle );
if ( pAngle != NULL ) {
if ( strcmpi( pAngle, "true" ) == 0 || atoi( pAngle ) == 1 ) {
e->nShowFlags |= ECLASS_ANGLE;
}
delete pAngle;
}
if ( !e->skinpath ) {
setSpecialLoad( e, "texture=", e->skinpath );