Fixed one tiny instruction mistake that could cause issues with dynamic lights on terrains

This commit is contained in:
smallmodel 2024-06-07 20:10:01 +02:00
parent db7ae4ffef
commit be222b64a1
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -543,7 +543,7 @@ int R_RealDlightTerrain(cTerraPatchUnpacked_t* srf, int dlightBits) {
vec[0] += srf->drawinfo.lmapStep;
z01 = srf->heightmap[k];
vec[2] = srf->z0; z00 + z01;
vec[2] = srf->z0 + z00 + z01;
added |= R_DlightSample(src, vec, dst);
src += 3;