Permalink
Browse files

fixed bugs with plugin system and path debug draw

  • Loading branch information...
1 parent e486274 commit f97f5d4d82c176e638d02a6f8814a62efd37c3b3 @AdamAtomic committed Apr 30, 2011
Showing with 4 additions and 2 deletions.
  1. +1 −1 org/flixel/FlxG.as
  2. +2 −0 org/flixel/FlxPath.as
  3. +1 −1 org/flixel/plugin/DebugPathDisplay.as
View
@@ -977,7 +977,7 @@ package org.flixel
var l:uint = pluginList.length;
while(i < l)
{
- if(pluginList[i++] is ClassType)
+ if(pluginList[i] is ClassType)
return plugins[i];
i++;
}
@@ -31,6 +31,7 @@ package org.flixel
/**
* Setting this to true will prevent the object from appearing
* when the visual debug mode in the debugger overlay is toggled on.
+ * @default false
*/
public var ignoreDrawDebug:Boolean;
@@ -53,6 +54,7 @@ package org.flixel
_point = new FlxPoint();
debugScrollFactor = new FlxPoint(1.0,1.0);
debugColor = 0xffffff;
+ ignoreDrawDebug = false;
var debugPathDisplay:DebugPathDisplay = manager;
if(debugPathDisplay != null)
@@ -37,7 +37,7 @@ package org.flixel.plugin
override public function draw():void
{
if(!FlxG.visualDebug || ignoreDrawDebug)
- return;
+ return;
if(cameras == null)
cameras = FlxG.cameras;

0 comments on commit f97f5d4

Please sign in to comment.