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.
This commit is contained in:
Emmanuel BENOîT 2012-01-16 17:42:11 +01:00
parent 30a1080e6e
commit a981d1653e

View file

@ -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;