fix off by one in sprite lightlevels

This commit is contained in:
Alug committed 2024-09-09 21:50:24 +02:00
1 parent 8c379f56cd
commit dfc6ffe2ba
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}