Merge remote-tracking branch 'origin/7.0-features' into 7.0-features
This commit is contained in:
@@ -278,8 +278,8 @@ public class FloorRenderer{
|
|||||||
private void cacheChunk(int cx, int cy){
|
private void cacheChunk(int cx, int cy){
|
||||||
used.clear();
|
used.clear();
|
||||||
|
|
||||||
for(int tilex = cx * chunksize; tilex < (cx + 1) * chunksize && tilex < world.width(); tilex++){
|
for(int tilex = Math.max(cx * chunksize - 1, 0); tilex < (cx + 1) * chunksize + 1 && tilex < world.width(); tilex++){
|
||||||
for(int tiley = cy * chunksize; tiley < (cy + 1) * chunksize && tiley < world.height(); tiley++){
|
for(int tiley = Math.max(cy * chunksize - 1, 0); tiley < (cy + 1) * chunksize + 1 && tiley < world.height(); tiley++){
|
||||||
Tile tile = world.rawTile(tilex, tiley);
|
Tile tile = world.rawTile(tilex, tiley);
|
||||||
boolean wall = tile.block().cacheLayer != CacheLayer.normal;
|
boolean wall = tile.block().cacheLayer != CacheLayer.normal;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ public class HintsFragment{
|
|||||||
public void build(Group parent){
|
public void build(Group parent){
|
||||||
group.setFillParent(true);
|
group.setFillParent(true);
|
||||||
group.touchable = Touchable.childrenOnly;
|
group.touchable = Touchable.childrenOnly;
|
||||||
group.visibility = () -> Core.settings.getBool("hints", true) && ui.hudfrag.shown;
|
//TODO hints off for now.
|
||||||
|
group.visibility = () -> !state.isCampaign() && Core.settings.getBool("hints", true) && ui.hudfrag.shown;
|
||||||
group.update(() -> {
|
group.update(() -> {
|
||||||
if(current != null){
|
if(current != null){
|
||||||
//current got completed
|
//current got completed
|
||||||
|
|||||||
Reference in New Issue
Block a user