rgb instead of rgba sending to engine
authordisplacer
Sat, 28 Oct 2006 15:35:31 +0000
changeset 214 3cd2b0f4531e
parent 213 c5480c5b11ff
child 215 a0774085e20b
rgb instead of rgba sending to engine
QTfrontend/game.cpp
--- a/QTfrontend/game.cpp	Sat Oct 28 15:09:51 2006 +0000
+++ b/QTfrontend/game.cpp	Sat Oct 28 15:35:31 2006 +0000
@@ -62,7 +62,7 @@
 		SendIPC("eaddteam");
 		LocalCFG(teams[i]);
 		QColor clr=m_teamsParams[teams[i]].teamColor;
-		SendIPC(QString("ecolor %1").arg(clr.rgb()).toAscii());//&0xFFFFFF
+		SendIPC(QString("ecolor %1").arg(clr.rgb()&0xFFFFFF).toAscii());
 		for (int t = 0; t < m_teamsParams[teams[i]].numHedgehogs; t++)
 			SendIPC(QString("eadd hh%1 0").arg(t).toAscii());
 	}