X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fengine%2Fe_msg.pas;h=6433511f3abd87e2d2570a4e05b272f3e1ecb7a8;hb=ee042fbd9cc188c3f0547d51f8012ef73447dfc7;hp=04efb5dc07455a7a18efceaa63e085094f6f5cb9;hpb=c81b3c085bea0e6ea549c54bfd9ad5b344c86b01;p=d2df-sdl.git diff --git a/src/engine/e_msg.pas b/src/engine/e_msg.pas index 04efb5d..6433511 100644 --- a/src/engine/e_msg.pas +++ b/src/engine/e_msg.pas @@ -1,4 +1,4 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -164,12 +164,12 @@ end; procedure TMsg.Write(V: ShortInt); overload; begin - WriteData(@V, 2); + WriteData(@V, 1); end; procedure TMsg.Write(V: SmallInt); overload; begin - WriteData(@V, 1); + WriteData(@V, 2); end; procedure TMsg.Write(V: LongInt); overload; @@ -248,13 +248,13 @@ end; function TMsg.ReadShortInt(): ShortInt; begin Result := 0; - ReadData(@Result, 2); + ReadData(@Result, 1); end; function TMsg.ReadSmallInt(): SmallInt; begin Result := 0; - ReadData(@Result, 1); + ReadData(@Result, 2); end; function TMsg.ReadLongInt(): LongInt;