Mercurial > mm7
comparison Indoor.cpp @ 1408:204cce84300b
FindSound
author | Ritor1 |
---|---|
date | Fri, 26 Jul 2013 18:11:36 +0600 |
parents | d4f57df4c299 |
children | 38df78aba732 |
comparison
equal
deleted
inserted
replaced
1407:d4f57df4c299 | 1408:204cce84300b |
---|---|
6907 PortalFace._screen_space_x[bottom_num_vertices] = PortalFace._screen_space_x[0]; | 6907 PortalFace._screen_space_x[bottom_num_vertices] = PortalFace._screen_space_x[0]; |
6908 PortalFace._screen_space_y[bottom_num_vertices] = PortalFace._screen_space_y[0]; | 6908 PortalFace._screen_space_y[bottom_num_vertices] = PortalFace._screen_space_y[0]; |
6909 } | 6909 } |
6910 return bottom_num_vertices; | 6910 return bottom_num_vertices; |
6911 } | 6911 } |
6912 | |
6913 //----- (004AAEA6) -------------------------------------------------------- | |
6914 int __fastcall sub_4AAEA6_transform(RenderVertexSoft *a1) | |
6915 { | |
6916 double v4; // st5@2 | |
6917 double v5; // st4@3 | |
6918 float v11; // [sp+8h] [bp-8h]@2 | |
6919 float v12; // [sp+8h] [bp-8h]@6 | |
6920 float v13; // [sp+Ch] [bp-4h]@2 | |
6921 float v14; // [sp+Ch] [bp-4h]@6 | |
6922 | |
6923 if ( pBLVRenderParams->sPartyRotX ) | |
6924 { | |
6925 v13 = a1->vWorldPosition.x - (double)pParty->vPosition.x; | |
6926 v11 = a1->vWorldPosition.y - (double)pParty->vPosition.y; | |
6927 v4 = a1->vWorldPosition.z - (double)pParty->vPosition.z; | |
6928 if ( pRenderer->pRenderD3D ) | |
6929 { | |
6930 v5 = v11 * pBLVRenderParams->fSineY + v13 * pBLVRenderParams->fCosineY; | |
6931 a1->vWorldViewPosition.y = v13 * pBLVRenderParams->fSineY - v11 * pBLVRenderParams->fCosineY; | |
6932 } | |
6933 else | |
6934 { | |
6935 v5 = v13 * pBLVRenderParams->fCosineY - v11 * pBLVRenderParams->fSineY; | |
6936 a1->vWorldViewPosition.y = v13 * pBLVRenderParams->fSineY + v11 * pBLVRenderParams->fCosineY; | |
6937 } | |
6938 a1->vWorldViewPosition.x = v5 * pBLVRenderParams->fCosineNegX - v4 * pBLVRenderParams->fSineNegX; | |
6939 a1->vWorldViewPosition.z = v5 * pBLVRenderParams->fSineNegX + v4 * pBLVRenderParams->fCosineNegX; | |
6940 } | |
6941 else | |
6942 { | |
6943 v14 = a1->vWorldPosition.x - (double)pParty->vPosition.x; | |
6944 v12 = a1->vWorldPosition.y - (double)pParty->vPosition.y; | |
6945 a1->vWorldViewPosition.z = a1->vWorldPosition.z - (double)pParty->vPosition.z; | |
6946 if ( pRenderer->pRenderD3D ) | |
6947 { | |
6948 a1->vWorldViewPosition.x = v12 * pBLVRenderParams->fSineY + v14 * pBLVRenderParams->fCosineY; | |
6949 a1->vWorldViewPosition.y = v14 * pBLVRenderParams->fSineY - v12 * pBLVRenderParams->fCosineY; | |
6950 } | |
6951 else | |
6952 { | |
6953 a1->vWorldViewPosition.x = v14 * pBLVRenderParams->fCosineY - v12 * pBLVRenderParams->fSineY; | |
6954 a1->vWorldViewPosition.y = v14 * pBLVRenderParams->fSineY + v12 * pBLVRenderParams->fCosineY; | |
6955 } | |
6956 } | |
6957 return 0; | |
6958 } |