Skip to content

Commit 8933ab4

Browse files
author
bytekeeper
committed
Right/Bottom should be added and not subtracted.
1 parent ab0eff3 commit 8933ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ public int getTop() {
130130
}
131131

132132
public int getRight() {
133-
return position.x - getType().dimensionRight();
133+
return position.x + getType().dimensionRight();
134134
}
135135

136136
public int getBottom() {
137-
return position.y - getType().dimensionDown();
137+
return position.y + getType().dimensionDown();
138138
}
139139

140140
public int getHitPoints() {

0 commit comments

Comments
 (0)