light cache lookup fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2671 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-17 21:45:23 +00:00
parent 70b5088e0e
commit ff25419d96
+1 -1
View File
@@ -353,7 +353,7 @@ struct vertmodel : model
int cachelen = 0;
for(; d != lightcache.end(); d = d->next, cachelen++)
{
if(d->lastcalclight != lastcalclight || d->pos != modelpos || d->cur != cur) continue;
if(d->lastcalclight != lastcalclight || d->pos != modelpos || d->yaw != modelyaw || d->pitch != modelpitch || d->cur != cur) continue;
if(prev)
{
if(d->prev == *prev && d->t == ai_t) return d;