Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix some coordinates

  • Loading branch information...
commit 4e92e8eca257f949dd4d6932cb637ec8f9748b4d 1 parent 1337ad2
Lâm Thái authored
BIN  flashpunk/bin/flashpunk.swf
View
Binary file not shown
6 flashpunk/src/logic/soldier/BaseSoldier.as
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.