Permalink
Browse files

Fix some coordinates

  • Loading branch information...
1 parent 1337ad2 commit 4e92e8eca257f949dd4d6932cb637ec8f9748b4d @atapie committed Apr 14, 2012
Showing with 3 additions and 3 deletions.
  1. BIN flashpunk/bin/flashpunk.swf
  2. +3 −3 flashpunk/src/logic/soldier/BaseSoldier.as
View
Binary file not shown.
@@ -84,7 +84,7 @@ package logic.soldier
world.remove(this);
BattleLogic.instance().removeTroop(this);
break;
- }
+ }
}
}
@@ -219,8 +219,8 @@ package logic.soldier
if (result.length == 0)
{
if (
- (team == Constants.TEAM_1 && (x + attackRange + Constants.CELL_SIZE * sizeWidth) >= (FP.width - 60)) ||
- (team == Constants.TEAM_2 && (x - attackRange - Constants.CELL_SIZE/2) <= 60)
+ (team == Constants.TEAM_1 && (x + attackRange + Constants.CELL_SIZE * sizeWidth - Constants.CELL_SIZE / 2) >= (FP.width - 60)) ||
+ (team == Constants.TEAM_2 && (x - attackRange - Constants.CELL_SIZE / 2) <= 60)
)
{
return result;

0 comments on commit 4e92e8e

Please sign in to comment.