From 6c7cf6d432782faa435da064fb964500829c836e Mon Sep 17 00:00:00 2001 From: MaxED Date: Tue, 10 May 2016 23:22:58 +0000 Subject: [PATCH] Added: when "sidedefcompressionignoresaction" property is set to false, sidedefs, which belong to a line with a non-zero action or tag, will be skipped when compressing sidedefs. --- Help/gc_basicsettings.html | 4 ++-- Source/Core/Map/MapSet.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Help/gc_basicsettings.html b/Help/gc_basicsettings.html index 914f5d3..cf6beed 100644 --- a/Help/gc_basicsettings.html +++ b/Help/gc_basicsettings.html @@ -151,8 +151,8 @@ defaultskytextures Default value is false.

sidedefcompressionignoresaction (boolean) - GZDB only.
- When set to true, sidedefs will be compressed regardless of linedef action (DB2 behaviour, can potentially cause problems when target source port doesn't decompress sidedefs).
- When set to false, sidedefs, which belong to a line with an action, will be skipped when compressing sidedefs.
+ When set to true, sidedefs will be compressed regardless of linedef action or tag(s) (DB2 behaviour, can potentially cause problems when target source port doesn't decompress sidedefs).
+ When set to false, sidedefs, which belong to a line with an action or non-zero tag(s), will be skipped when compressing sidedefs.
Default value is false.

diff --git a/Source/Core/Map/MapSet.cs b/Source/Core/Map/MapSet.cs index b1563ec..5d85289 100644 --- a/Source/Core/Map/MapSet.cs +++ b/Source/Core/Map/MapSet.cs @@ -3211,8 +3211,8 @@ namespace CodeImp.DoomBuilder.Map Sidedef stored = null; Sidedef snsd = sidedefs[sn]; - //mxd. Skip sidedef if it belongs to a linedef with an action? - if(!General.Map.Config.SidedefCompressionIgnoresAction && snsd.Line.Action != 0) + //mxd. Skip sidedef if it belongs to a linedef with an action or tag? + if(!General.Map.Config.SidedefCompressionIgnoresAction && (snsd.Line.Action != 0 || snsd.Line.Tag != 0)) { // Next! sn++;