mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix the unlit models in full light bug
This commit is contained in:
parent
a69b172f6f
commit
7e4e294089
1 changed files with 2 additions and 2 deletions
|
@ -389,14 +389,14 @@ loop:
|
|||
lightmap = surf->samples;
|
||||
r = 0;
|
||||
if (lightmap) {
|
||||
lightmap += dt * ((surf->extents[0] >> 4) + 1) + ds;
|
||||
lightmap += (dt * ((surf->extents[0] >> 4) + 1) + ds) * mod_lightmap_bytes;
|
||||
|
||||
for (maps = 0; maps < MAXLIGHTMAPS && surf->styles[maps] != 255;
|
||||
maps++) {
|
||||
scale = d_lightstylevalue[surf->styles[maps]];
|
||||
r += *lightmap * scale;
|
||||
lightmap += ((surf->extents[0] >> 4) + 1) *
|
||||
((surf->extents[1] >> 4) + 1);
|
||||
((surf->extents[1] >> 4) + 1) * mod_lightmap_bytes;
|
||||
}
|
||||
|
||||
r >>= 8;
|
||||
|
|
Loading…
Reference in a new issue