Skip to content

Commit

Permalink
removed CONFIG::DEBUG conditional compiles which where used for debug…
Browse files Browse the repository at this point in the history
…ing in Shark on iPhone
  • Loading branch information
mikechambers committed May 26, 2010
1 parent fbf1e53 commit a1ba94e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
9 changes: 0 additions & 9 deletions src/com/mikechambers/pewpew/engine/GameArea.as
Original file line number Diff line number Diff line change
Expand Up @@ -300,18 +300,9 @@ package com.mikechambers.pewpew.engine
}

/********** game events *************/

CONFIG::DEBUG
{
private function gameAreaonTick():void{}
}

private function onTick(e:TickEvent):void
{
CONFIG::DEBUG
{
gameAreaonTick();
}

e.stopPropagation();
checkCollisions();
Expand Down
12 changes: 1 addition & 11 deletions src/com/mikechambers/pewpew/engine/gameobjects/Missile.as
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,8 @@ package com.mikechambers.pewpew.engine.gameobjects
missileSound.play();
}

CONFIG::DEBUG
{
private function missileOnTick():void{}
}

protected override function onTick(e:TickEvent):void
{
CONFIG::DEBUG
{
missileOnTick();
}

{
e.stopPropagation();

var shouldRemove:Boolean = false;
Expand Down
9 changes: 0 additions & 9 deletions src/com/mikechambers/pewpew/engine/gameobjects/Ship.as
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,8 @@ package com.mikechambers.pewpew.engine.gameobjects
//stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
}

CONFIG::DEBUG
{
private function shipOnTick():void{}
}

protected override function onTick(e:TickEvent):void
{
CONFIG::DEBUG
{
shipOnTick();
}

e.stopPropagation();

Expand Down

0 comments on commit a1ba94e

Please sign in to comment.