mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Merge pull request #588 from Pan7/eangle
Angle pointer by entity definition
This commit is contained in:
commit
1dfec8f7a8
1 changed files with 8 additions and 0 deletions
|
@ -236,6 +236,14 @@ eclass_t *Eclass_InitFromText( char *text ){
|
||||||
e->nFrame = atoi( pFrame );
|
e->nFrame = atoi( pFrame );
|
||||||
delete pFrame; //Hydra - Fixed memory leak!
|
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 ) {
|
if ( !e->skinpath ) {
|
||||||
setSpecialLoad( e, "texture=", e->skinpath );
|
setSpecialLoad( e, "texture=", e->skinpath );
|
||||||
|
|
Loading…
Reference in a new issue