You've already forked lazarus-ccr
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:
@@ -91,6 +91,7 @@ type
|
|||||||
public
|
public
|
||||||
Board: TChessBoard;
|
Board: TChessBoard;
|
||||||
msg : String;
|
msg : String;
|
||||||
|
PlayerName: string;
|
||||||
FirstPlayerIsWhite, IsWhitePlayerTurn: Boolean;
|
FirstPlayerIsWhite, IsWhitePlayerTurn: Boolean;
|
||||||
Dragging: Boolean;
|
Dragging: Boolean;
|
||||||
DragStart, MouseMovePos: TPoint;
|
DragStart, MouseMovePos: TPoint;
|
||||||
|
@@ -246,6 +246,7 @@ begin
|
|||||||
|
|
||||||
gSelectedModuleIndex := comboGameMode.ItemIndex;
|
gSelectedModuleIndex := comboGameMode.ItemIndex;
|
||||||
lModule := GetChessModule(gSelectedModuleIndex);
|
lModule := GetChessModule(gSelectedModuleIndex);
|
||||||
|
vChessGame.PlayerName := editPlayerName.Text;
|
||||||
lModule.PrepareForGame();
|
lModule.PrepareForGame();
|
||||||
|
|
||||||
timerChessTimer.Enabled := True;
|
timerChessTimer.Enabled := True;
|
||||||
|
@@ -147,7 +147,7 @@ var
|
|||||||
lResult, WaitTerminated: Boolean;
|
lResult, WaitTerminated: Boolean;
|
||||||
lMsg: string;
|
lMsg: string;
|
||||||
begin
|
begin
|
||||||
FICS_USER := 'FPChess';
|
FICS_USER := vChessGame.PlayerName;
|
||||||
FICS_PASSWORD := editPassword.Text;
|
FICS_PASSWORD := editPassword.Text;
|
||||||
|
|
||||||
// SecondPlayerName := editSecondPlayerName.Text;
|
// SecondPlayerName := editSecondPlayerName.Text;
|
||||||
|
Reference in New Issue
Block a user