summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f6a265)
raw | patch | inline | side by side (parent: 3f6a265)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 5 Aug 2019 22:35:35 +0000 (01:35 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 5 Aug 2019 22:35:35 +0000 (01:35 +0300) |
src/shared/mapstructio.inc | patch | blob | history |
index d1198d539aadee69b5e2961350d172dcc20f6cb8..f17a47654190bf5149458679bfde3ad273e12bb3 100644 (file)
begin
getWordAt(tr.DamageValue, buf, 0);
getWordAt(tr.DamageInterval, buf, 2);
- getBytesAt(tr.DamageKind, buf, 4);
+ getBytesAt(tr.DamageKind, buf, 4, 1);
end;
procedure xreadHealth ();
@@ -496,7 +496,7 @@ procedure mb_Write_TriggerData (var buf; bufsize: Integer; ttype: Integer; var t
begin
putWordAt(buf, 0, tr.DamageValue);
putWordAt(buf, 2, tr.DamageInterval);
- putBytesAt(buf, 4, tr.DamageKind);
+ putBytesAt(buf, 4, tr.DamageKind, 1);
end;
procedure xwriteHealth ();