Mercurial > mm7
comparison Render.cpp @ 767:45615cacad31
Fog fixed
author | Nomad |
---|---|
date | Sat, 23 Mar 2013 21:11:15 +0200 |
parents | 852ec78d9548 |
children | d170f23f70d1 |
comparison
equal
deleted
inserted
replaced
766:a464d28566a6 | 767:45615cacad31 |
---|---|
632 array_77EC08[1999].v_18.z = -stru_5C6E00->Cos(pIndoorCamera->sRotationX + 16); | 632 array_77EC08[1999].v_18.z = -stru_5C6E00->Cos(pIndoorCamera->sRotationX + 16); |
633 LOWORD(v2) = 224 * LOWORD(pMiscTimer->uTotalGameTimeElapsed); | 633 LOWORD(v2) = 224 * LOWORD(pMiscTimer->uTotalGameTimeElapsed); |
634 array_77EC08[1999].field_24 = 0x2000000u; | 634 array_77EC08[1999].field_24 = 0x2000000u; |
635 array_77EC08[1999].sTextureDeltaU = 224 * pMiscTimer->uTotalGameTimeElapsed; | 635 array_77EC08[1999].sTextureDeltaU = 224 * pMiscTimer->uTotalGameTimeElapsed; |
636 array_77EC08[1999].sTextureDeltaV = 224 * pMiscTimer->uTotalGameTimeElapsed; | 636 array_77EC08[1999].sTextureDeltaV = 224 * pMiscTimer->uTotalGameTimeElapsed; |
637 if ( day_attrib & 1 | 637 if ( day_attrib & DAY_ATTRIB_FOG |
638 && (LOWORD(v2) = LOWORD(pParty->uCurrentHour), pParty->uCurrentHour >= 5) | 638 && (LOWORD(v2) = LOWORD(pParty->uCurrentHour), pParty->uCurrentHour >= 5) |
639 && pParty->uCurrentHour < 0x15 | 639 && pParty->uCurrentHour < 0x15 |
640 || bUnderwater ) | 640 || bUnderwater ) |
641 { | 641 { |
642 v2 = (stru148 *)*(short *)PaletteManager::Get_Mist_or_Red_LUT(array_77EC08[1999].pTexture->palette_id2, 31, 1); | 642 v2 = (stru148 *)*(short *)PaletteManager::Get_Mist_or_Red_LUT(array_77EC08[1999].pTexture->palette_id2, 31, 1); |