mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
POH room rotation now correctly updates clipping flags
This commit is contained in:
parent
76d31a68ad
commit
a184b4ce2f
1 changed files with 6 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ import core.game.node.item.GroundItem;
|
||||||
import core.game.node.item.Item;
|
import core.game.node.item.Item;
|
||||||
import core.game.node.scenery.Constructed;
|
import core.game.node.scenery.Constructed;
|
||||||
import core.game.node.scenery.Scenery;
|
import core.game.node.scenery.Scenery;
|
||||||
|
import core.game.node.scenery.SceneryBuilder;
|
||||||
import core.tools.Log;
|
import core.tools.Log;
|
||||||
import core.tools.SystemLogger;
|
import core.tools.SystemLogger;
|
||||||
import core.game.world.map.build.LandscapeParser;
|
import core.game.world.map.build.LandscapeParser;
|
||||||
|
|
@ -100,11 +101,12 @@ public class BuildRegionChunk extends RegionChunk {
|
||||||
for (int x = 0; x < SIZE; x++) {
|
for (int x = 0; x < SIZE; x++) {
|
||||||
for (int y = 0; y < SIZE; y++) {
|
for (int y = 0; y < SIZE; y++) {
|
||||||
for (int i = 0; i < objects.length; i++) {
|
for (int i = 0; i < objects.length; i++) {
|
||||||
copy[i][x][y] = objects[i][x][y];
|
Scenery object = copy[i][x][y] = objects[i][x][y];
|
||||||
objects[i][x][y] = null;
|
if (object != null) {
|
||||||
|
SceneryBuilder.remove(object);
|
||||||
|
this.remove(object);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
plane.getObjects()[baseX + x][baseY + y] = null;
|
|
||||||
plane.getFlags().clearFlag(baseX + x, baseY + y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clear();
|
clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue