Point Thing at Cursor: check for a thing's fixedrotation rather than its category's arrow setting (#957)

This commit is contained in:
wisselstem 2023-09-17 13:06:57 +02:00 committed by GitHub
parent ed93c4d69b
commit 01bcdc01b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1474,7 +1474,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Thing t in selected)
{
ThingTypeInfo info = General.Map.Data.GetThingInfo(t.Type);
if(info == null || info.Category == null || info.Category.Arrow == 0)
if(info == null || info.FixedRotation == true)
continue;
int newangle = Angle2D.RealToDoom(Vector2D.GetAngle(mousemappos, t.Position) + Angle2D.PI);
@ -1488,7 +1488,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach(Thing t in selected)
{
ThingTypeInfo info = General.Map.Data.GetThingInfo(t.Type);
if(info == null || info.Category == null || info.Category.Arrow == 0)
if(info == null || info.FixedRotation == true)
continue;
int newangle = Angle2D.RealToDoom(Vector2D.GetAngle(mousemappos, t.Position));