From 70363847aacbf765c60a294940ba50c8bb256cc6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 26 Nov 2011 12:35:30 +0200 Subject: Reshape LuaEntityCAO implementation a bit and make TNT to blink --- src/content_sao.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 5d63b295e..74824d573 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -1748,6 +1748,18 @@ void LuaEntitySAO::setAcceleration(v3f acceleration) m_acceleration = acceleration; } +void LuaEntitySAO::setTextureMod(const std::string &mod) +{ + std::ostringstream os(std::ios::binary); + // command (1 = set texture modification) + writeU8(os, 1); + // parameters + os<