aboutsummaryrefslogtreecommitdiff
path: root/src/tileanimation.h
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-09-04 16:22:12 +0200
committersfan5 <sfan5@live.de>2022-09-10 12:21:29 +0200
commitc607bee19e286165fd497d57d2bb2b8ac5986f36 (patch)
tree69d5722e4ac3dc1d900f9d7640fe82a5db277499 /src/tileanimation.h
parentadb03ccc6dfefd4af2bc0c4607a67c574e2e6164 (diff)
downloadminetest-c607bee19e286165fd497d57d2bb2b8ac5986f36.tar.xz
Allow looped animation to be used safely with old clients
fixes #12657
Diffstat (limited to 'src/tileanimation.h')
-rw-r--r--src/tileanimation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tileanimation.h b/src/tileanimation.h
index 0449de0b8..45b91655e 100644
--- a/src/tileanimation.h
+++ b/src/tileanimation.h
@@ -50,8 +50,8 @@ struct TileAnimationParams
} sheet_2d;
};
- void serialize(std::ostream &os, u16 protocol_version) const;
- void deSerialize(std::istream &is, u16 protocol_version);
+ void serialize(std::ostream &os, u16 protocol_ver) const;
+ void deSerialize(std::istream &is, u16 protocol_ver);
void determineParams(v2u32 texture_size, int *frame_count, int *frame_length_ms,
v2u32 *frame_size) const;
void getTextureModifer(std::ostream &os, v2u32 texture_size, int frame) const;