aboutsummaryrefslogtreecommitdiff
path: root/readme.txt
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-29 21:28:03 +0100
committerorwell96 <orwell@bleipb.de>2018-10-29 21:28:03 +0100
commit1ff809b8837ec1a4d06672e9b4bc12b1230575b7 (patch)
tree0ee055c8d8cd52fde4ec91e760423fd6c8ca58b4 /readme.txt
parent93726db4e3c36878981b5eb934b3599a50bc6619 (diff)
downloadadvtrains-1ff809b8837ec1a4d06672e9b4bc12b1230575b7.tar.gz
advtrains-1ff809b8837ec1a4d06672e9b4bc12b1230575b7.tar.bz2
advtrains-1ff809b8837ec1a4d06672e9b4bc12b1230575b7.zip
Do not print "couldn't determine section" warning when all traverser ends were end-of-track
Diffstat (limited to 'readme.txt')
0 files changed, 0 insertions, 0 deletions
client/tile.h" #include "clientenvironment.h" #include "client.h" #include "map.h" class SmokePuffCSO: public ClientSimpleObject { float m_age = 0.0f; scene::IBillboardSceneNode *m_spritenode = nullptr; public: SmokePuffCSO(scene::ISceneManager *smgr, ClientEnvironment *env, const v3f &pos, const v2f &size) { infostream<<"SmokePuffCSO: constructing"<<std::endl; m_spritenode = smgr->addBillboardSceneNode( NULL, v2f(1,1), pos, -1); m_spritenode->setMaterialTexture(0, env->getGameDef()->tsrc()->getTextureForMesh("smoke_puff.png")); m_spritenode->setMaterialFlag(video::EMF_LIGHTING, false); m_spritenode->setMaterialFlag(video::EMF_BILINEAR_FILTER, false); //m_spritenode->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF); m_spritenode->setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL); m_spritenode->setMaterialFlag(video::EMF_FOG_ENABLE, true); m_spritenode->setColor(video::SColor(255,0,0,0)); m_spritenode->setVisible(true); m_spritenode->setSize(size); /* Update brightness */ u8 light; bool pos_ok; MapNode n = env->getMap().getNode(floatToInt(pos, BS), &pos_ok); light = pos_ok ? decode_light(n.getLightBlend(env->getDayNightRatio(), env->getGameDef()->ndef())) : 64; video::SColor color(255,light,light,light); m_spritenode->setColor(color); } virtual ~SmokePuffCSO() { infostream<<"SmokePuffCSO: destructing"<<std::endl; m_spritenode->remove(); } void step(float dtime) { m_age += dtime; if(m_age > 1.0){ m_to_be_removed = true; } } }; ClientSimpleObject* createSmokePuff(scene::ISceneManager *smgr, ClientEnvironment *env, v3f pos, v2f size)