Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Pine Valley map in Lake Valley #34

Merged
merged 2 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ts/RailroadMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ export class RailroadMap {
this.svg = new Svg()
.addClass('map-svg')
.addTo(element);
if (this.railroad.settings.gameLevelName) {
this.layerVisibility.background = false;
}
this.layers = this.createLayers();
this.render();
this.panZoom = this.initPanZoom();
Expand Down
2 changes: 1 addition & 1 deletion ts/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function textToString(value: GvasText): GvasString {
} else {
// Simple text
if (0 === value.length) {
console.log(`Warning: GvasText contains zero-length string array, converting to null`);
// console.log(`Warning: GvasText contains zero-length string array, converting to null`);
return null;
}
if (1 !== value.length) throw new Error('Expected single entry in simple GvasText');
Expand Down