Add light_spot to the list of recognized light classes.

This commit is contained in:
jdolan 2013-07-04 20:32:30 -04:00
parent 380a05bbdf
commit 8a8c460048
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,8 @@ eclass_t *Eclass_InitFromText( char *text ){
// setup show flags
e->nShowFlags = 0;
if ( strcmpi( e->name, "light" ) == 0 || strcmpi( e->name, "dlight" ) == 0 || strcmpi( e->name, "lightjunior" ) == 0 ) {
if ( strcmpi( e->name, "light" ) == 0 || strcmpi( e->name, "dlight" ) == 0
|| strcmpi( e->name, "lightjunior" ) == 0 || strcmpi( e->name, "light_spot" ) == 0 ) {
e->nShowFlags |= ECLASS_LIGHT;
}
@ -255,7 +256,6 @@ eclass_t *Eclass_InitFromText( char *text ){
e->nShowFlags |= ECLASS_MISCMODEL;
}
return e;
}