Merge pull request #588 from Pan7/eangle

Angle pointer by entity definition
This commit is contained in:
Timothee "TTimo" Besset 2018-01-27 14:08:55 -06:00 committed by GitHub
commit 1dfec8f7a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 );