diff Engine/Graphics/Render.cpp @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents 9ec6b8be16fe
children 3a36de426f5f
line wrap: on
line diff
--- a/Engine/Graphics/Render.cpp	Mon Jan 19 23:10:30 2015 +0600
+++ b/Engine/Graphics/Render.cpp	Mon Feb 09 19:17:12 2015 +0600
@@ -8641,8 +8641,12 @@
                         - (double)pGame->pIndoorCameraD3D->vPartyPos.z));
   pSkyPolygon.Create_48607B(&stru_8019C8);//заполняется ptr_38
   pSkyPolygon.ptr_38->_48694B_frustum_sky();
-  pSkyPolygon.uTileBitmapID = pOutdoor->sSky_TextureID;//179(original 166)
-  pSkyPolygon.pTexture = (Texture *)(SLOWORD(pOutdoor->sSky_TextureID) != -1 ? (int)&pBitmaps_LOD->pTextures[SLOWORD(pOutdoor->sSky_TextureID)] : 0);
+
+  //if ( pParty->uCurrentHour > 20 || pParty->uCurrentHour < 5 )
+	//pSkyPolygon.uTileBitmapID = pOutdoor->New_SKY_NIGHT_ID;
+  //else
+	pSkyPolygon.uTileBitmapID = pOutdoor->sSky_TextureID;//179(original 166)
+  pSkyPolygon.pTexture = (Texture *)(pSkyPolygon.uTileBitmapID != -1 ? (int)&pBitmaps_LOD->pTextures[pSkyPolygon.uTileBitmapID] : 0);
   if ( pSkyPolygon.pTexture )
   {
     pSkyPolygon.dimming_level = 0;
@@ -10958,8 +10962,8 @@
 
 	float ray_dx = fov_x / (float)pViewport->uScreenWidth,
 		ray_dy = fov_y / (float)pViewport->uScreenHeight;
-	float party_angle_x = 2 * 3.141592653589 * pParty->sRotationX / 2048.0,
-		party_angle_y = 2 * 3.141592653589 * pParty->sRotationY / 2048.0;
+	float party_angle_x = 2 * pi_double * pParty->sRotationX / 2048.0,
+		party_angle_y = 2 * pi_double * pParty->sRotationY / 2048.0;
 	for (int y = 0; y < pViewport->uScreenHeight; ++y)
 	for (int x = 0; x < pViewport->uScreenWidth; ++x)
 	{