1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

content_cao: Do not expire visuals when not necessary

fixes #6572
This commit is contained in:
sfan5 2020-05-25 23:36:45 +02:00
parent 34862a6442
commit db7c262ee8
2 changed files with 34 additions and 11 deletions

View file

@ -68,7 +68,6 @@ struct SmoothTranslatorWrappedv3f : SmoothTranslator<v3f>
class GenericCAO : public ClientActiveObject
{
private:
void readAOMessageProperties(std::istream &is);
// Only set at initialization
std::string m_name = "";
bool m_is_player = false;
@ -131,6 +130,8 @@ private:
// Settings
bool m_enable_shaders = false;
bool visualExpiryRequired(const ObjectProperties &newprops) const;
public:
GenericCAO(Client *client, ClientEnvironment *env);