Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed bugs with plugin system and path debug draw
  • Loading branch information
AdamAtomic committed Apr 30, 2011
1 parent e486274 commit f97f5d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion org/flixel/FlxG.as
Expand Up @@ -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++;
}
Expand Down
2 changes: 2 additions & 0 deletions org/flixel/FlxPath.as
Expand Up @@ -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;

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion org/flixel/plugin/DebugPathDisplay.as
Expand Up @@ -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;
Expand Down

0 comments on commit f97f5d4

Please sign in to comment.