diff --git a/legacyworlds-server-data/db-structure/parts/040-functions/060-universe.sql b/legacyworlds-server-data/db-structure/parts/040-functions/060-universe.sql index 67e58c1..79a7f62 100644 --- a/legacyworlds-server-data/db-structure/parts/040-functions/060-universe.sql +++ b/legacyworlds-server-data/db-structure/parts/040-functions/060-universe.sql @@ -264,12 +264,12 @@ DECLARE y INT; npics INT; BEGIN - PERFORM verse.collect_resource_statistics( ); + PERFORM verse.collect_resprov_statistics( ); npics := floor( sys.get_constant( 'game.universe.pictures' ) ); - FOR x IN _area.x0 .. area.x1 + FOR x IN _area.x0 .. _area.x1 LOOP - FOR y IN area.y0 .. area.y1 + FOR y IN _area.y0 .. _area.y1 LOOP PERFORM verse.create_system( x , y , ipop , npics ); END LOOP; @@ -302,7 +302,7 @@ DECLARE BEGIN sz := floor( sys.get_constant( 'game.universe.initialSize' ) ); pop := sys.get_constant( 'game.universe.initialPopulation' ); - PERFORM verse.create_systems( -sz , -sz , sz , sz , pop ); + PERFORM verse.create_systems( ROW( -sz , -sz , sz , sz ) , pop ); END; $$ LANGUAGE plpgsql;