Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename variables based on previous versions of ZZT #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SRC/GAMEVARS.PAS
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ interface
DebugEnabled: boolean;

HighScoreList: THighScoreList;
ConfigRegistration: string;
ConfigRegistrant: string;
ConfigWorldFile: TString50;
EditorEnabled: boolean;
GameVersion: TString50;
ParsingConfigFile: boolean;
SerialNumber: TString50;
ConfigInvalid: boolean;
ResetConfig: boolean; { This flag is a remnant from ZZT 3.0. }
JustStarted: boolean;

Expand Down
24 changes: 12 additions & 12 deletions SRC/ZZT.PAS
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ procedure ParseArguments;

procedure GameConfigure;
var
unk1: integer;
joystickEnabled, mouseEnabled: boolean;
tmp: integer;
joystickSupported, mouseSupported: boolean;
cfgFile: text;
begin
ParsingConfigFile := true;
ConfigInvalid := true;
EditorEnabled := true;
ConfigRegistration := '';
ConfigRegistrant := '';
ConfigWorldFile := '';
GameVersion := '3.2';
SerialNumber := '3.2';

Assign(cfgFile, 'zzt.cfg');
Reset(cfgFile);
if IOResult = 0 then begin
Readln(cfgFile, ConfigWorldFile);
Readln(cfgFile, ConfigRegistration);
Readln(cfgFile, ConfigRegistrant);
end;
if ConfigWorldFile[1] = '*' then begin
EditorEnabled := false;
Expand All @@ -79,10 +79,10 @@ procedure GameConfigure;
end;

InputInitDevices;
joystickEnabled := InputJoystickEnabled;
mouseEnabled := InputMouseEnabled;
joystickSupported := InputJoystickEnabled;
mouseSupported := InputMouseEnabled;

ParsingConfigFile := false;
ConfigInvalid := false;

Window(1, 1, 80, 25);
TextBackground(Black);
Expand All @@ -92,7 +92,7 @@ procedure GameConfigure;
Writeln;
Writeln(' <=- ZZT -=>');
TextColor(Yellow);
if Length(ConfigRegistration) = 0 then
if Length(ConfigRegistrant) = 0 then
Writeln(' Shareware version 3.2')
else
Writeln(' Version 3.2');
Expand Down Expand Up @@ -156,7 +156,7 @@ begin

if not GameTitleExitRequested then begin
VideoInstall(80, Blue);
OrderPrintId := @GameVersion;
OrderPrintId := @SerialNumber;
TextWindowInit(5, 3, 50, 18);
New(IoTmpBuf);

Expand All @@ -183,7 +183,7 @@ begin
TextAttr := InitialTextAttr;
ClrScr;

if Length(ConfigRegistration) = 0 then begin
if Length(ConfigRegistrant) = 0 then begin
GamePrintRegisterMessage;
end else begin
Writeln;
Expand Down