fpchess: Fixes login name

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1905 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
sekelsenmat
2011-09-06 11:12:55 +00:00
parent 7f43f113b3
commit 73811c895f
3 changed files with 3 additions and 1 deletions

View File

@ -91,6 +91,7 @@ type
public
Board: TChessBoard;
msg : String;
PlayerName: string;
FirstPlayerIsWhite, IsWhitePlayerTurn: Boolean;
Dragging: Boolean;
DragStart, MouseMovePos: TPoint;

View File

@ -246,6 +246,7 @@ begin
gSelectedModuleIndex := comboGameMode.ItemIndex;
lModule := GetChessModule(gSelectedModuleIndex);
vChessGame.PlayerName := editPlayerName.Text;
lModule.PrepareForGame();
timerChessTimer.Enabled := True;

View File

@ -147,7 +147,7 @@ var
lResult, WaitTerminated: Boolean;
lMsg: string;
begin
FICS_USER := 'FPChess';
FICS_USER := vChessGame.PlayerName;
FICS_PASSWORD := editPassword.Text;
// SecondPlayerName := editSecondPlayerName.Text;