Fixed lightstyle support
This commit is contained in:
parent
77e99a6e07
commit
9c6deae527
1 changed files with 5 additions and 1 deletions
|
@ -589,6 +589,8 @@ qboolean CheckSurfInLight(msurface_t *surf, shadowlight_t *light)
|
||||||
float dist;
|
float dist;
|
||||||
glpoly_t *poly;
|
glpoly_t *poly;
|
||||||
|
|
||||||
|
//return true;
|
||||||
|
|
||||||
//Doesn't recieve per pixel light or cast shadows...
|
//Doesn't recieve per pixel light or cast shadows...
|
||||||
if (!(surf->flags & SURF_PPLIGHT) && (surf->flags & SURF_NOSHADOW)) {
|
if (!(surf->flags & SURF_PPLIGHT) && (surf->flags & SURF_NOSHADOW)) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -2648,6 +2650,8 @@ char *ParseEnt (char *data, qboolean *isLight, entity_t *ent)
|
||||||
ent->model = Mod_ForName(com_token, true);
|
ent->model = Mod_ForName(com_token, true);
|
||||||
} else if (!strcmp(keyname, "skin")) {
|
} else if (!strcmp(keyname, "skin")) {
|
||||||
ent->skinnum = atoi(com_token);
|
ent->skinnum = atoi(com_token);
|
||||||
|
} else if (!strcmp(keyname, "style")) {
|
||||||
|
ent->style = atoi(com_token);
|
||||||
} else if (!strcmp(keyname, "_noautolight")) {
|
} else if (!strcmp(keyname, "_noautolight")) {
|
||||||
Con_Printf("Automatic light gen disabled\n");//XYW \n
|
Con_Printf("Automatic light gen disabled\n");//XYW \n
|
||||||
foundworld = true;
|
foundworld = true;
|
||||||
|
@ -2695,7 +2699,7 @@ void LoadLightsFromFile (char *data)
|
||||||
if (!data)
|
if (!data)
|
||||||
break;
|
break;
|
||||||
if (com_token[0] != '{')
|
if (com_token[0] != '{')
|
||||||
Sys_Error ("ED_LoadFromFile: found %s when expecting {",com_token);
|
Sys_Error ("LoadLightsFromFile: found %s when expecting {",com_token);
|
||||||
|
|
||||||
isLight = false;
|
isLight = false;
|
||||||
Q_memset(&fakeEnt,0,sizeof(entity_t));
|
Q_memset(&fakeEnt,0,sizeof(entity_t));
|
||||||
|
|
Loading…
Reference in a new issue