From a981d1653efda4836db5d71904e51b3ae7da018b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 16 Jan 2012 17:42:11 +0100 Subject: [PATCH] Universe generator fix * A function called by the initial universe generator was changed, but the call wasn't updated accordingly. This problem has been fixed. * Variable / procedure name errors in some of the old, untested functions. --- .../db-structure/parts/040-functions/060-universe.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;