mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 16:41:31 +00:00
Thanks for the patch, gimhael. (#4576)
This commit is contained in:
parent
ecbe1ab9fd
commit
13836e5f4a
2 changed files with 2 additions and 5 deletions
|
@ -155,9 +155,6 @@ static void R_LoadLightmaps( lump_t *l ) {
|
|||
//FIXME: HACK: maps with only one lightmap turn up fullbright for some reason.
|
||||
//this avoids this, but isn't the correct solution.
|
||||
tr.numLightmaps++;
|
||||
} else if ( tr.numLightmaps >= MAX_LIGHTMAPS ) { // 20051020 misantropia
|
||||
ri.Printf( PRINT_WARNING, "WARNING: number of lightmaps > MAX_LIGHTMAPS\n" );
|
||||
tr.numLightmaps = MAX_LIGHTMAPS;
|
||||
}
|
||||
|
||||
// if we are in r_vertexLight mode, we don't need the lightmaps at all
|
||||
|
@ -165,6 +162,7 @@ static void R_LoadLightmaps( lump_t *l ) {
|
|||
return;
|
||||
}
|
||||
|
||||
tr.lightmaps = ri.Hunk_Alloc( tr.numLightmaps * sizeof(image_t *), h_low );
|
||||
for ( i = 0 ; i < tr.numLightmaps ; i++ ) {
|
||||
// expand the 24 bit on-disk to 32 bit
|
||||
buf_p = buf + i * LIGHTMAP_SIZE*LIGHTMAP_SIZE * 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue