From a701cccc02795ea2dbca86609db0b1aee209b87d Mon Sep 17 00:00:00 2001 From: yasin-ghannam Date: Thu, 11 Jul 2013 01:17:39 +0000 Subject: [PATCH] Team Identifiers(Needs adding hatOffsets to kart models) git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/soccer@13178 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/irr_driver.hpp | 2 +- src/modes/soccer_world.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/irr_driver.hpp b/src/graphics/irr_driver.hpp index 9fc307e47..125fa9f60 100644 --- a/src/graphics/irr_driver.hpp +++ b/src/graphics/irr_driver.hpp @@ -159,7 +159,7 @@ public: scene::ISceneNode *parent = NULL); scene::ISceneNode *addBillboard(const core::dimension2d< f32 > size, video::ITexture *texture, - scene::ISceneNode* parent=NULL, bool alphaTesting); + scene::ISceneNode* parent=NULL, bool alphaTesting = false); scene::IParticleSystemSceneNode *addParticleNode(bool default_emitter=true); diff --git a/src/modes/soccer_world.cpp b/src/modes/soccer_world.cpp index 7c62ebf24..6c3cdba89 100644 --- a/src/modes/soccer_world.cpp +++ b/src/modes/soccer_world.cpp @@ -323,10 +323,10 @@ void SoccerWorld::initKartList() scene::ISceneNode *hatNode; if(race_manager->getLocalKartInfo(i).getSoccerTeam() == SOCCER_TEAM_RED) hatNode = irr_driver->addBillboard(core::dimension2d(0.3,0.3) - ,redTeamTexture,m_karts[i]->getKartModel()->getAnimatedNode()->getJointNode("Head")); + ,redTeamTexture,m_karts[i]->getKartModel()->getAnimatedNode()->getJointNode("Head"), true); else hatNode = irr_driver->addBillboard(core::dimension2d(0.3,0.3) - ,blueTeamTexture,m_karts[i]->getKartModel()->getAnimatedNode()->getJointNode("Head")); + ,blueTeamTexture,m_karts[i]->getKartModel()->getAnimatedNode()->getJointNode("Head"),true); hatNode->setPosition(m_karts[i]->getKartModel()->getHatOffset()); }