Skip to content

Commit

Permalink
Was always returning hardcoded layer.json. Fixed so that the one in t…
Browse files Browse the repository at this point in the history
…he tile root directory is returned if it exists.
  • Loading branch information
rumicuna committed Sep 4, 2015
1 parent 4a6a408 commit c05f1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/fs/fs.go
Expand Up @@ -53,7 +53,7 @@ func (this *Store) Tile(tileset string, tile *stores.Terrain) (err error) {
}

func (this *Store) Layer(tileset string) ([]byte, error) {
filename := filepath.Join(tileset, "layer.json")
filename := filepath.Join(this.root, tileset, "layer.json")
return this.readFile(filename)
}

Expand Down

0 comments on commit c05f1fc

Please sign in to comment.