Minor fixes

This commit is contained in:
Maruno17
2021-01-30 17:26:27 +00:00
parent 400ad6e208
commit e70d89f457
3 changed files with 3 additions and 5 deletions

View File

@@ -570,7 +570,8 @@ end
def pbDownloadData(url, filename=nil, depth=0) def pbDownloadData(url, filename=nil, depth=0)
raise "Redirection level too deep" if depth>10 raise "Redirection level too deep" if depth>10
if url[/^http:\/\/([^\/]+)(.*)$/] if url[/^(([^:\/?#]+):(?=\/\/))?(\/\/)?((([^:]+)(?::([^@]+)?)?@)?([^@\/?#:]*)(?::(\d+)?)?)?([^?#]*)(\?([^#]*))?(#(.*))?/]
# if url[/^http:\/\/([^\/]+)(.*)$/]
host = $1 host = $1
path = $2 path = $2
path = "/" if path.length==0 path = "/" if path.length==0

View File

@@ -9,7 +9,7 @@ class Game_Map
attr_accessor :tileset_name # tileset file name attr_accessor :tileset_name # tileset file name
attr_accessor :autotile_names # autotile file name attr_accessor :autotile_names # autotile file name
attr_reader :passages # passage table attr_reader :passages # passage table
attr_reader :priorities # prioroty table attr_reader :priorities # priority table
attr_reader :terrain_tags # terrain tag table attr_reader :terrain_tags # terrain tag table
attr_reader :events # events attr_reader :events # events
attr_accessor :panorama_name # panorama file name attr_accessor :panorama_name # panorama file name

View File

@@ -147,9 +147,6 @@ end
# Dungeon generation algorithm found at:
# http://members.gamedev.net/potentialwell/ProceduralDungeonGeneration-JTippets.pdf
class MazeNode class MazeNode
def initialize def initialize
@edges=0 @edges=0