fix off by one in sprite lightlevels
This commit is contained in:
1 parent
8c379f56cd
commit
dfc6ffe2ba
1 file changed
+1
-1
@@ -3846,7 +3846,7 @@ static void HWR_SplitSprite(gr_vissprite_t *spr)
|
||||
if (!(list[i].flags & FF_NOSHADE) && (list[i].flags & FF_CUTSPRITES))
|
||||
{
|
||||
if (!(spr->mobj->frame & FF_FULLBRIGHT))
|
||||
lightlevel = min(*list[i-1].lightlevel, 255);
|
||||
lightlevel = min(*list[i].lightlevel, 255);
|
||||
colormap = list[i].extra_colormap;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user