Category : BBS Programs+Doors
Archive   : TWVIEW93.ZIP
Filename : PART4.INC

 
Output of file : PART4.INC contained in archive : TWVIEW93.ZIP
procedure partIV( var space : TheVoid );
var
Exists : array [ sector ] of boolean;
temp,
was : boolean;
n : integer;
s : sectorIndex;
line : string;
begin
for s := 1 to MaxSector do
exists[ s ] := false;
repeat
readln( f, line );
until (pos( 'Deployed Fighter Scan', line) > 0) or eof(f);
if eof(f) then
exit;
readln( f, line ); {blank}
readln( f, line ); { Sector Fighters ...}
readln( f, line ); {===}
readln( f, line ); {first line of display}
while pos( 'Total', line) = 0 do
begin
temp := bval( copy(line, 1, 6), n );
s := n;
exists[ s ] := true;
readln( f, line );
end; {while}
for s := 1 to MaxSector do
begin
Was := (space.sectors[ s ].etc and HasFighters) <> Nothing;
if was and (not exists[ s ]) then
begin
writeln('Lost fighters in sector ', s );
space.sectors[s].etc := space.sectors[s].etc and (not HasFighters);
end {if}
else if exists[ s ] and (not was) then
begin
writeln('New fighters in sector ', s );
space.sectors[s].etc := space.sectors[s].etc or HasFighters;
end; {else}
end; {for}
SaveData( g, space );
write('Hit return to continue...');
readln;
end; {Part4}

  3 Responses to “Category : BBS Programs+Doors
Archive   : TWVIEW93.ZIP
Filename : PART4.INC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/