Classic Modes: added 3D floor indication (color can be changed in Preferences -> Appearance -> 3D Floors).

Sector_Set3dFloor action (160): added hi-tag/line ID check.
This commit is contained in:
MaxED 2013-05-20 10:43:34 +00:00
parent e4751dfaf1
commit ae8780f4ea
14 changed files with 125 additions and 52 deletions

View file

@ -822,7 +822,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
// ========== Sector 3D floor (see http://zdoom.org/wiki/Sector_Set3dFloor) ==========
else if((l.Action == 160) && (l.Front != null))
{
int sectortag = l.Args[0] + (l.Args[4] << 8);
//mxd. Added hi-tag/line ID check
int sectortag = (l.Args[1] & (int)Effect3DFloor.FloorTypes.HiTagIsLineID) != 0 ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
if(sectortags.ContainsKey(sectortag))
{
List<Sector> sectors = sectortags[sectortag];