Skip to content

Commit

Permalink
Fixed barracks exit point
Browse files Browse the repository at this point in the history
* Added sound to building setup
  • Loading branch information
Cr0s committed May 15, 2014
1 parent a9e71aa commit 75a7a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cr0s/javara/entity/building/EntityBarracks.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ public void deployEntity(EntityActor newInstance) {
@Override
public void onBuildFinished() {
this.exitPoint = new Point((posX) / 24, (posY + 1 * 24) / 24);
this.rallyPoint = new Point((posX + 24) / 24, (posY + 2 * 24) / 24);
this.rallyPoint = new Point((posX) / 24, (posY + 2 * 24) / 24);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public EntityBuildingProgress(EntityBuilding aTargetBuilding) {

// Play "building" sound
if (this.owner == Main.getInstance().getPlayer()) {
SoundManager.getInstance().playSfxGlobal("placbldg", 0.7f);
SoundManager.getInstance().playSfxGlobal("build5", 0.7f);
}
}
Expand Down

0 comments on commit 75a7a1f

Please sign in to comment.