mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-03-04 00:21:44 +00:00
Colormaps and FOFs with tag 65535 (global) are now displayed in Visual Mode
This commit is contained in:
parent
0c7ac90697
commit
593cf7538b
1 changed files with 5 additions and 4 deletions
|
@ -19,6 +19,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using CodeImp.DoomBuilder.BuilderModes.Interface;
|
using CodeImp.DoomBuilder.BuilderModes.Interface;
|
||||||
using CodeImp.DoomBuilder.Windows;
|
using CodeImp.DoomBuilder.Windows;
|
||||||
|
@ -1005,9 +1006,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
int color;
|
int color;
|
||||||
int alpha;
|
int alpha;
|
||||||
l.ParseColor(l.Front.HighTexture, out color, out alpha);
|
l.ParseColor(l.Front.HighTexture, out color, out alpha);
|
||||||
if (sectortags.ContainsKey(sectortag))
|
if (sectortags.ContainsKey(sectortag) || sectortag == 65535)
|
||||||
{
|
{
|
||||||
List<Sector> sectors = sectortags[sectortag];
|
List<Sector> sectors = (sectortag == 65535) ? General.Map.Map.Sectors.ToList() : sectortags[sectortag];
|
||||||
foreach (Sector s in sectors)
|
foreach (Sector s in sectors)
|
||||||
{
|
{
|
||||||
s.Fields.BeforeFieldsChange();
|
s.Fields.BeforeFieldsChange();
|
||||||
|
@ -1086,9 +1087,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
if (!General.Map.FormatInterface.HasLinedefParameters) l.Set3DFloorArgs();
|
if (!General.Map.FormatInterface.HasLinedefParameters) l.Set3DFloorArgs();
|
||||||
//mxd. Added hi-tag/line ID check
|
//mxd. Added hi-tag/line ID check
|
||||||
int sectortag = (General.Map.UDMF || (l.Args[1] & (int)Effect3DFloor.FloorTypes.HiTagIsLineID) != 0) ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
|
int sectortag = (General.Map.UDMF || (l.Args[1] & (int)Effect3DFloor.FloorTypes.HiTagIsLineID) != 0) ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
|
||||||
if (sectortags.ContainsKey(sectortag))
|
if (sectortags.ContainsKey(sectortag) || sectortag == 65535)
|
||||||
{
|
{
|
||||||
List<Sector> sectors = sectortags[sectortag];
|
List<Sector> sectors = (sectortag == 65535) ? General.Map.Map.Sectors.ToList() : sectortags[sectortag];
|
||||||
foreach (Sector s in sectors)
|
foreach (Sector s in sectors)
|
||||||
{
|
{
|
||||||
SectorData sd = GetSectorData(s);
|
SectorData sd = GetSectorData(s);
|
||||||
|
|
Loading…
Reference in a new issue