mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 19:35:10 -06:00
I fucking hate arios
This commit is contained in:
parent
5f00844221
commit
5beca2839c
1 changed files with 2 additions and 15 deletions
|
|
@ -247,9 +247,7 @@ public final class WalkingQueue {
|
|||
if (last == null) {
|
||||
last = p.getLocation();
|
||||
}
|
||||
if ((last.getRegionX() - entity.getLocation().getRegionX()) >= 4 || (last.getRegionX() - entity.getLocation().getRegionX()) <= -4) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
} else if ((last.getRegionY() - entity.getLocation().getRegionY()) >= 4 || (last.getRegionY() - entity.getLocation().getRegionY()) <= -4) {
|
||||
if (last.getChunk() != p.getLocation().getChunk()) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
}
|
||||
}
|
||||
|
|
@ -272,18 +270,7 @@ public final class WalkingQueue {
|
|||
if (lastRegion == null) {
|
||||
lastRegion = location;
|
||||
}
|
||||
int rx = lastRegion.getRegionX();
|
||||
int ry = lastRegion.getRegionY();
|
||||
int cx = location.getRegionX();
|
||||
int cy = location.getRegionY();
|
||||
if ((rx - cx) >= 4) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
} else if ((rx - cx) <= -4) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
}
|
||||
if ((ry - cy) >= 4) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
} else if ((ry - cy) <= -4) {
|
||||
if (lastRegion.getChunk() != location.getChunk()) {
|
||||
p.getPlayerFlags().setUpdateSceneGraph(true);
|
||||
}
|
||||
if (move && p.getPlayerFlags().isUpdateSceneGraph()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue