Small fix in Align Things to Linedef action.

This commit is contained in:
MaxED 2013-04-05 12:23:50 +00:00
parent f8c8b71dfa
commit 0243c8c3c8

View file

@ -809,9 +809,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
List<Thing> toAlign = new List<Thing>(); List<Thing> toAlign = new List<Thing>();
foreach(Thing t in selected){ foreach(Thing t in selected)
if(t.IsModel) if(t.IsModel) toAlign.Add(t);
toAlign.Add(t);
if(toAlign.Count == 0) {
General.Interface.DisplayStatus(StatusType.Warning, "This action only works for things with models!");
return;
} }
// Make undo // Make undo