Changeset 438 for trunk/LocalPlayer/Select.pas
- Timestamp:
- May 18, 2022, 11:12:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Select.pas
r435 r438 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, IsoEngine,PVSB, BaseWin,7 Protocol, ClientTools, Term, ScreenTools, PVSB, BaseWin, 8 8 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, 9 9 ExtCtrls, ButtonB, ButtonBase, Menus, Types; … … 99 99 100 100 uses 101 CityScreen, Help, UnitStat, Tribes, Inp ;101 CityScreen, Help, UnitStat, Tribes, Inp, CmdList; 102 102 103 103 {$R *.lfm} … … 865 865 CityNameInfo.ID := MyCity[cix].ID; 866 866 CityNameInfo.NewName := InputDlg.EInput.Text; 867 Server(cSetCityName, me, 0, CityNameInfo); 867 if CityNameInfo.GetCommandDataSize > CommandDataMaxSize then 868 Delete(CityNameInfo.NewName, Length(CityNameInfo.NewName) - 869 (CityNameInfo.GetCommandDataSize - 1 - CommandDataMaxSize), MaxInt); 870 Server(CommandWithData(cSetCityName, CityNameInfo.GetCommandDataSize), 871 me, 0, CityNameInfo); 868 872 if CityDlg.Visible then 869 873 begin … … 871 875 CityDlg.Invalidate; 872 876 end; 873 result := true;877 Result := True; 874 878 end 875 879 else 876 result := false;880 Result := False; 877 881 end; 878 882 … … 890 894 ModelNameInfo.mix := mix; 891 895 ModelNameInfo.NewName := InputDlg.EInput.Text; 892 Server(cSetModelName, me, 0, ModelNameInfo); 896 if ModelNameInfo.GetCommandDataSize > CommandDataMaxSize then 897 Delete(ModelNameInfo.NewName, Length(ModelNameInfo.NewName) - 898 (ModelNameInfo.GetCommandDataSize - 1 - CommandDataMaxSize), MaxInt); 899 Server(CommandWithData(cSetModelName, ModelNameInfo.GetCommandDataSize), 900 me, 0, ModelNameInfo); 893 901 if UnitStatDlg.Visible then 894 902 begin
Note:
See TracChangeset
for help on using the changeset viewer.