Ignore:
Timestamp:
Feb 12, 2018, 3:08:27 PM (7 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormChat.pas

    r184 r185  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   UGame, UGameClient;
     9  UGame, UGameClient, SpecializedList;
    1010
    1111type
     
    4141
    4242procedure TFormChat.ButtonMessageSendClick(Sender: TObject);
    43 var
    44   TextMessage: TCommandTextMessage;
    4543begin
    4644  if Assigned(Client) then
    4745  with Client do begin
    48     TextMessage.Text := EditMessage.Text;
    49     Client.Send(cmdTextMessage, @TextMessage, nil);
     46    Protocol.SendMessage(EditMessage.Text);
    5047    MemoChat.Lines.Add(Client.Name + ': ' + EditMessage.Text);
    5148    EditMessage.Text := '';
Note: See TracChangeset for help on using the changeset viewer.