mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-06 00:57:03 +07:00
Defined a custom BBox for waypoint pads to be more squared with tiles and slightly larger
This commit is contained in:
parent
8c18e072dd
commit
ba03f5c269
@ -162,7 +162,15 @@ public class Engine extends PooledEngine {
|
||||
}
|
||||
|
||||
BBoxComponent boxComponent = createComponent(BBoxComponent.class);
|
||||
if (animationComponent != null) {
|
||||
if (base.SubClass == 64) {
|
||||
BBox box = boxComponent.box = new BBox();
|
||||
box.xMin = -70;
|
||||
box.yMin = -30;
|
||||
box.xMax = -box.xMin;
|
||||
box.yMax = -box.yMin;
|
||||
box.width = Math.abs(2 * box.xMin);
|
||||
box.height = Math.abs(2 * box.yMin);
|
||||
} else if (animationComponent != null) {
|
||||
boxComponent.box = animationComponent.animation.getBox();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user