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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user