get the spotlight working

This commit is contained in:
Bill Currie 2004-03-25 05:41:33 +00:00
parent 16a90e17f2
commit 1d40013e5e
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ MatchTargets (void)
SetKeyValue (&entities[i], "style", s);
}
if (entities[i].spotcone <= 0) {
if (entities[i].spotcone >= 0) {
VectorZero (entities[i].spotdir);
entities[i].spotcone = 0;
}

View file

@ -333,7 +333,7 @@ SingleLightFace (entity_t *light, lightinfo_t *l)
continue;
// spotlight cutoff
if (spotcone > 0 && DotProduct (spotvec, incoming) > spotcone)
if (spotcone && DotProduct (spotvec, incoming) > spotcone)
continue;
angle = DotProduct (incoming, l->facenormal);