Skip to content
Snippets Groups Projects
Commit e7efcb23 authored by deuce's avatar deuce
Browse files

Use correct filename for cabal data file in maint.js.

Make the empty first record generation more like the rest of the init
functions.

Should fix the last Toolman bug...
parent 76c61dc3
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ var CabalProperties = [
}
];
var cabals=new RecordFile(fname("cabal.dat"), CabalProperties);
var cabals=new RecordFile(fname("cabals.dat"), CabalProperties);
function RunMaint()
{
......@@ -386,10 +386,14 @@ function InitializeCabal()
var sector=sectors.Get(85);
uifc.pop("Initializing the Cabal");
uifc.msg("Cabal file len: "+cabals.length);
uifc.msg("Cabal len: "+cabals.RecordLength);
sector_map[85].Fighters=3000;
sector_map[85].FightersOwner=-1;
for(i=1; i<=10; i++) {
cabals.New().Put();
for(i=1; i<10; i++) {
var grp=cabals.New();
uifc.msg("New group: "+grp.Record);
if(i==1) {
grp.Size=3000;
grp.Sector=85;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment