Fixed a problem where the tag and high tag arguments of line actions 121 and 160 were not pasted correctly in Hexen format. Fixes #987

This commit is contained in:
biwa 2024-01-12 15:56:50 +01:00
parent 77ed089917
commit fcc5a0b2f8

View file

@ -619,7 +619,7 @@ namespace CodeImp.DoomBuilder.Map
if(args[0] > General.Map.FormatInterface.MaxArgument) // Split sector tag?
{
int hitag = args[0] / 256;
int lotag = args[0] - hitag;
int lotag = args[0] % 256;
args[0] = lotag;
args[4] = hitag;
@ -651,7 +651,7 @@ namespace CodeImp.DoomBuilder.Map
break;
default: // Convert tag to Line_SetIdentification?
if(tags[0] > General.Map.FormatInterface.MinArgument)
if(tags[0] > General.Map.FormatInterface.MaxArgument)
{
if(action != 0)
{
@ -661,7 +661,7 @@ namespace CodeImp.DoomBuilder.Map
else // Convert to Line_SetIdentification
{
int hiid = tags[0] / 256;
int loid = tags[0] - hiid;
int loid = tags[0] % 256;
action = 121;
args[0] = loid;