erikphilips
12-11-2003, 09:10 AM
tGameStatus = (gsLoadSettings, gsCreateDisplay, gsStart, gsTesting);
gameStatus: tGameStatus;
gameStatusNext: tGameStatus;
if (gameActive and gameFocus) then
try
case gameStatus of
(gsLoadSettings):
begin
if (gameStatusNext = nil) then
gameStatus := gsCreateDisplay;
end;
(gsCreateDisplay):
begin
gameDisplay := cGraphics.Create(handle);
end;
else
gameUtils.dialogFatal('Unknown Game Status!');
application.Terminate;
end;
end;
Anyway, it obviously fails at if gameStatusNext, if i have not assigned GameStatusNext, what is it? How do i see if there is a next status?
gameStatus: tGameStatus;
gameStatusNext: tGameStatus;
if (gameActive and gameFocus) then
try
case gameStatus of
(gsLoadSettings):
begin
if (gameStatusNext = nil) then
gameStatus := gsCreateDisplay;
end;
(gsCreateDisplay):
begin
gameDisplay := cGraphics.Create(handle);
end;
else
gameUtils.dialogFatal('Unknown Game Status!');
application.Terminate;
end;
end;
Anyway, it obviously fails at if gameStatusNext, if i have not assigned GameStatusNext, what is it? How do i see if there is a next status?