Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing "Hide Debug Objects" option in Export menu.
  • Loading branch information
MainMemory committed Apr 30, 2015
1 parent 62bf72b commit cc24b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SonLVLAPI/LevelData.cs
Expand Up @@ -1068,13 +1068,13 @@ public static BitmapBits DrawForeground(Rectangle? section, bool includeObjects,
for (int oi = 0; oi < Objects.Count; oi++)
{
ObjectEntry oe = Objects[oi];
if (ObjectVisible(oe, allTimeZones))
if (!(!includeDebugObjects && GetObjectDefinition(oe.ID).Debug) && ObjectVisible(oe, allTimeZones))
LevelImg8bpp.DrawSprite(oe.Sprite, -bounds.X, -bounds.Y);
}
if (RingFormat is RingLayoutFormat)
for (int ri = 0; ri < Rings.Count; ri++)
LevelImg8bpp.DrawSprite(Rings[ri].Sprite, -bounds.X, -bounds.Y);
if (Bumpers != null)
if (Bumpers != null && includeDebugObjects)
foreach (CNZBumperEntry item in Bumpers)
LevelImg8bpp.DrawSprite(item.Sprite, -bounds.X, -bounds.Y);
foreach (StartPositionEntry item in StartPositions)
Expand Down

0 comments on commit cc24b5b

Please sign in to comment.