mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Cached MapInfos.rxdata and map_connections.dat, reduced usage of load_data
This commit is contained in:
@@ -416,11 +416,7 @@ module MapFactoryHelper
|
||||
def self.getMapConnections
|
||||
if !@@MapConnections
|
||||
@@MapConnections = []
|
||||
begin
|
||||
conns = load_data("Data/map_connections.dat")
|
||||
rescue
|
||||
conns = []
|
||||
end
|
||||
conns = pbLoadMapConnections
|
||||
for i in 0...conns.length
|
||||
conn = conns[i]
|
||||
v = getMapEdge(conn[0],conn[1])
|
||||
|
||||
Reference in New Issue
Block a user