From ff25419d9649e03bd65782f4e06bb48e8facdc60 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 17 Sep 2008 21:45:23 +0000 Subject: [PATCH] light cache lookup fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2671 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/vertmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/vertmodel.h b/source/src/vertmodel.h index a4fb44c9..1572939b 100644 --- a/source/src/vertmodel.h +++ b/source/src/vertmodel.h @@ -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;