comparison mm7_3.cpp @ 2006:30c2b575d25c

signed fixes DamagePlayerFromMonster -1 indexing
author zipi
date Wed, 06 Nov 2013 13:06:02 +0000
parents 2e6c63bdcfa9
children 03d9336e862f
comparison
equal deleted inserted replaced
2005:8fa26b63244a 2006:30c2b575d25c
4672 4672
4673 v[0].pos.x = pViewport->uScreen_TL_X; 4673 v[0].pos.x = pViewport->uScreen_TL_X;
4674 v[0].pos.y = pViewport->uScreen_TL_Y; 4674 v[0].pos.y = pViewport->uScreen_TL_Y;
4675 v[0].pos.z = 0.99989998; 4675 v[0].pos.z = 0.99989998;
4676 v[0].rhw = 1; 4676 v[0].rhw = 1;
4677 v[0].diffuse = 0xFFFFFFFF; 4677 v[0].diffuse = -1;
4678 v[0].specular = 0; 4678 v[0].specular = 0;
4679 v[0].texcoord.x = 0; 4679 v[0].texcoord.x = 0;
4680 v[0].texcoord.y = 0; 4680 v[0].texcoord.y = 0;
4681 4681
4682 v[1].pos.x = pViewport->uScreen_TL_X + pViewport->uScreenWidth; 4682 v[1].pos.x = pViewport->uScreen_TL_X + pViewport->uScreenWidth;
4683 v[1].pos.y = pViewport->uScreen_TL_Y + pViewport->uScreenHeight; 4683 v[1].pos.y = pViewport->uScreen_TL_Y + pViewport->uScreenHeight;
4684 v[1].pos.z = 0.99989998; 4684 v[1].pos.z = 0.99989998;
4685 v[1].rhw = 1; 4685 v[1].rhw = 1;
4686 v[1].diffuse = 0xFFFFFFFF; 4686 v[1].diffuse = -1;
4687 v[1].specular = 0; 4687 v[1].specular = 0;
4688 v[1].texcoord.x = (float)pViewport->uScreenWidth / skybox_width; 4688 v[1].texcoord.x = (float)pViewport->uScreenWidth / skybox_width;
4689 v[1].texcoord.y = (float)pViewport->uScreenHeight / skybox_height; 4689 v[1].texcoord.y = (float)pViewport->uScreenHeight / skybox_height;
4690 4690
4691 v[2].pos.x = pViewport->uScreen_TL_X + pViewport->uScreenWidth; 4691 v[2].pos.x = pViewport->uScreen_TL_X + pViewport->uScreenWidth;
4692 v[2].pos.y = pViewport->uScreen_TL_Y; 4692 v[2].pos.y = pViewport->uScreen_TL_Y;
4693 v[2].pos.z = 0.99989998; 4693 v[2].pos.z = 0.99989998;
4694 v[2].rhw = 1; 4694 v[2].rhw = 1;
4695 v[2].diffuse = 0xFFFFFFFF; 4695 v[2].diffuse = -1;
4696 v[2].specular = 0; 4696 v[2].specular = 0;
4697 v[2].texcoord.x = (float)pViewport->uScreenWidth / skybox_width; 4697 v[2].texcoord.x = (float)pViewport->uScreenWidth / skybox_width;
4698 v[2].texcoord.y = 0; 4698 v[2].texcoord.y = 0;
4699 4699
4700 memcpy(&v[3], &v[0], sizeof(*v)); 4700 memcpy(&v[3], &v[0], sizeof(*v));
4701 4701
4702 v[4].pos.x = pViewport->uScreen_TL_X; 4702 v[4].pos.x = pViewport->uScreen_TL_X;
4703 v[4].pos.y = pViewport->uScreen_TL_Y + pViewport->uScreenHeight; 4703 v[4].pos.y = pViewport->uScreen_TL_Y + pViewport->uScreenHeight;
4704 v[4].pos.z = 0.99989998; 4704 v[4].pos.z = 0.99989998;
4705 v[4].rhw = 1; 4705 v[4].rhw = 1;
4706 v[4].diffuse = 0xFFFFFFFF; 4706 v[4].diffuse = -1;
4707 v[4].specular = 0; 4707 v[4].specular = 0;
4708 v[4].texcoord.x = 0; 4708 v[4].texcoord.x = 0;
4709 v[4].texcoord.y = (float)pViewport->uScreenHeight / skybox_height; 4709 v[4].texcoord.y = (float)pViewport->uScreenHeight / skybox_height;
4710 4710
4711 memcpy(&v[5], &v[1], sizeof(*v)); 4711 memcpy(&v[5], &v[1], sizeof(*v));