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,8 +2035,14 @@ static void P_WriteTextmap(void)
|
||||||
{
|
{
|
||||||
INT32 s;
|
INT32 s;
|
||||||
|
|
||||||
if (wlines[i].special != 606)
|
switch (wlines[i].special)
|
||||||
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;
|
||||||
|
}
|
||||||
|
|
||||||
TAG_ITER_SECTORS(wlines[i].args[0], s)
|
TAG_ITER_SECTORS(wlines[i].args[0], s)
|
||||||
{
|
{
|
||||||
|
@ -2045,6 +2051,10 @@ static void P_WriteTextmap(void)
|
||||||
|
|
||||||
wsectors[s].extra_colormap = wsides[wlines[i].sidenum[0]].colormap_data;
|
wsectors[s].extra_colormap = wsides[wlines[i].sidenum[0]].colormap_data;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(f, "namespace = \"srb2\";\n");
|
fprintf(f, "namespace = \"srb2\";\n");
|
||||||
|
|
Loading…
Reference in a new issue