From 821e3f7072b040f57e33785536a4f00a064a0069 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 18 Mar 2018 17:25:05 +0000 Subject: Optional alpha channel support for entities --- src/object_properties.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/object_properties.cpp') diff --git a/src/object_properties.cpp b/src/object_properties.cpp index e330bc24a..d42fbcc6c 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -68,6 +68,7 @@ std::string ObjectProperties::dump() os << ", static_save=" << static_save; os << ", eye_height=" << eye_height; os << ", zoom_fov=" << zoom_fov; + os << ", use_texture_alpha=" << use_texture_alpha; return os.str(); } @@ -113,6 +114,7 @@ void ObjectProperties::serialize(std::ostream &os) const writeU16(os, breath_max); writeF1000(os, eye_height); writeF1000(os, zoom_fov); + writeU8(os, use_texture_alpha); // Add stuff only at the bottom. // Never remove anything, because we don't want new versions of this @@ -164,4 +166,5 @@ void ObjectProperties::deSerialize(std::istream &is) breath_max = readU16(is); eye_height = readF1000(is); zoom_fov = readF1000(is); + use_texture_alpha = readU8(is); } -- cgit v1.2.3