fix off by one in sprite lightlevels

This commit is contained in:
Alug committed 2024-09-09 21:51:06 +02:00
1 parent 0e9b9d15ea
commit c148ff5a05
1 file changed
+1 -1
+1 -1
View File
@@ -3857,7 +3857,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;
}