mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Don't convert global colormaps
This commit is contained in:
parent
c1f03e7720
commit
5f6014223d
1 changed files with 17 additions and 7 deletions
|
@ -2035,15 +2035,25 @@ static void P_WriteTextmap(void)
|
|||
{
|
||||
INT32 s;
|
||||
|
||||
if (wlines[i].special != 606)
|
||||
continue;
|
||||
|
||||
TAG_ITER_SECTORS(wlines[i].args[0], s)
|
||||
switch (wlines[i].special)
|
||||
{
|
||||
if (wsectors[s].colormap_protected)
|
||||
continue;
|
||||
case 606:
|
||||
if (wlines[i].args[0] == MTAG_GLOBAL)
|
||||
{
|
||||
CONS_Printf("Linedef %d applies a global colormap which cannot be converted automatically. Please convert it manually.\n", i);
|
||||
break;
|
||||
}
|
||||
|
||||
wsectors[s].extra_colormap = wsides[wlines[i].sidenum[0]].colormap_data;
|
||||
TAG_ITER_SECTORS(wlines[i].args[0], s)
|
||||
{
|
||||
if (wsectors[s].colormap_protected)
|
||||
continue;
|
||||
|
||||
wsectors[s].extra_colormap = wsides[wlines[i].sidenum[0]].colormap_data;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue