From e70d89f457c2d98436f796a961c36da3e9ddf82b Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sat, 30 Jan 2021 17:26:27 +0000 Subject: [PATCH] Minor fixes --- Data/Scripts/001_Technical/005_Sockets.rb | 3 ++- Data/Scripts/003_Game classes/009_Game_Map.rb | 2 +- Data/Scripts/013_Overworld/010_PField_RandomDungeons.rb | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Data/Scripts/001_Technical/005_Sockets.rb b/Data/Scripts/001_Technical/005_Sockets.rb index 47c7cf09a..a98de9074 100644 --- a/Data/Scripts/001_Technical/005_Sockets.rb +++ b/Data/Scripts/001_Technical/005_Sockets.rb @@ -570,7 +570,8 @@ end def pbDownloadData(url, filename=nil, depth=0) raise "Redirection level too deep" if depth>10 - if url[/^http:\/\/([^\/]+)(.*)$/] + if url[/^(([^:\/?#]+):(?=\/\/))?(\/\/)?((([^:]+)(?::([^@]+)?)?@)?([^@\/?#:]*)(?::(\d+)?)?)?([^?#]*)(\?([^#]*))?(#(.*))?/] +# if url[/^http:\/\/([^\/]+)(.*)$/] host = $1 path = $2 path = "/" if path.length==0 diff --git a/Data/Scripts/003_Game classes/009_Game_Map.rb b/Data/Scripts/003_Game classes/009_Game_Map.rb index 2ee6d0e1e..4c0971db6 100644 --- a/Data/Scripts/003_Game classes/009_Game_Map.rb +++ b/Data/Scripts/003_Game classes/009_Game_Map.rb @@ -9,7 +9,7 @@ class Game_Map attr_accessor :tileset_name # tileset file name attr_accessor :autotile_names # autotile file name attr_reader :passages # passage table - attr_reader :priorities # prioroty table + attr_reader :priorities # priority table attr_reader :terrain_tags # terrain tag table attr_reader :events # events attr_accessor :panorama_name # panorama file name diff --git a/Data/Scripts/013_Overworld/010_PField_RandomDungeons.rb b/Data/Scripts/013_Overworld/010_PField_RandomDungeons.rb index 5b479132e..bd58a2ce6 100644 --- a/Data/Scripts/013_Overworld/010_PField_RandomDungeons.rb +++ b/Data/Scripts/013_Overworld/010_PField_RandomDungeons.rb @@ -147,9 +147,6 @@ end -# Dungeon generation algorithm found at: -# http://members.gamedev.net/potentialwell/ProceduralDungeonGeneration-JTippets.pdf - class MazeNode def initialize @edges=0