equal
deleted
inserted
replaced
628 |
628 |
629 GetParams(); |
629 GetParams(); |
630 |
630 |
631 if GameType = gmtLandPreview then |
631 if GameType = gmtLandPreview then |
632 GenLandPreview() |
632 GenLandPreview() |
633 else if GameType <> gmtSyntax then |
633 else if (GameType <> gmtBadSyntax) and (GameType <> gmtSyntaxHelp) then |
634 Game(); |
634 Game(); |
635 |
635 |
636 // return 1 when engine is not called correctly |
636 // return error when engine is not called correctly |
637 if GameType = gmtSyntax then |
637 if GameType = gmtBadSyntax then |
638 {$IFDEF PAS2C} |
638 {$IFDEF PAS2C} |
639 exit(HaltUsageError); |
639 exit(HaltUsageError); |
640 {$ELSE} |
640 {$ELSE} |
641 halt(HaltUsageError); |
641 halt(HaltUsageError); |
642 {$ENDIF} |
642 {$ENDIF} |