Hey Leute..
Mein Chams lässt nicht nur die gegner die Farbe ändern, sondern auch die Wände ..
Woran könnte das liegen?
Code:
if( (m_Stride == 36) || (m_Stride == 32) || (m_Stride == 44))
{
pDevice->SetRenderState(D3DRS_ZENABLE, 0);
if(Items.Color1==0) pDevice->SetTexture(0, White);
if(Items.Color1==1) pDevice->SetTexture(0, Red);
if(Items.Color1==2) pDevice->SetTexture(0, Green);
if(Items.Color1==3) pDevice->SetTexture(0, Blue);
if(Items.Color1==4) pDevice->SetTexture(0, Black);
if(Items.Color1==5) pDevice->SetTexture(0, Purple);
if(Items.Color1==6) pDevice->SetTexture(0, Grey);
if(Items.Color1==7) pDevice->SetTexture(0, Yellow);
if(Items.Color1==8) pDevice->SetTexture(0, Orange);
pDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE, 1);
if(Items.Color2==0) pDevice->SetTexture(0, White);
if(Items.Color2==1) pDevice->SetTexture(0, Red);
if(Items.Color2==2) pDevice->SetTexture(0, Green);
if(Items.Color2==3) pDevice->SetTexture(0, Blue);
if(Items.Color2==4) pDevice->SetTexture(0, Black);
if(Items.Color2==5) pDevice->SetTexture(0, Purple);
if(Items.Color2==6) pDevice->SetTexture(0, Grey);
if(Items.Color2==7) pDevice->SetTexture(0, Yellow);
if(Items.Color2==8) pDevice->SetTexture(0, Orange);
}
}