diff --git a/src/engine/e_msg.pas b/src/engine/e_msg.pas
index 04efb5dc07455a7a18efceaa63e085094f6f5cb9..6433511f3abd87e2d2570a4e05b272f3e1ecb7a8 100644 (file)
--- a/src/engine/e_msg.pas
+++ b/src/engine/e_msg.pas
-(* 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
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;
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;