Allow Thing angles outside of 0-359 in Find/Replace mode

This commit is contained in:
MascaraSnake 2016-10-04 18:35:32 +02:00
parent 11a6baf35f
commit 6b930b8e5b

View file

@ -93,10 +93,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Thing t in list)
{
// Match?
if(Angle2D.RealToDoom(t.Angle) == angle)
if(t.AngleDoom == angle)
{
// Replace
if(replace) t.Rotate(Angle2D.DoomToReal(replaceangle));
if(replace) t.Rotate(replaceangle);
// Add to list
ThingTypeInfo ti = General.Map.Data.GetThingInfo(t.SRB2Type);