comparison Game.cpp @ 638:ccf8b4815a1f

GetActorTintColor fixed Outdoor sunlight works on terrain & bmodels (not sure about billboards though)
author Nomad
date Mon, 11 Mar 2013 21:43:26 +0200
parents 86ee21956082
children ecfb1b3c9a39
comparison
equal deleted inserted replaced
637:d7b14091e434 638:ccf8b4815a1f
657 return true; 657 return true;
658 } 658 }
659 659
660 660
661 //----- (0044EDE4) -------------------------------------------------------- 661 //----- (0044EDE4) --------------------------------------------------------
662 bool Game::AlterGamma(BLVFace *pFace, unsigned int *pColor) 662 bool Game::AlterGamma_BLV(BLVFace *pFace, unsigned int *pColor)
663 { 663 {
664 if (pGame->uFlags2 & 2 && pFace->uAttributes & 2) 664 if (uFlags2 & GAME_FLAGS_2_SATURATE_LIGHTMAPS &&
665 pFace->uAttributes & FACE_CAN_SATURATE_COLOR)
665 { 666 {
666 *pColor = ReplaceHSV(*pColor, 1.0, fSaturation, -1.0); 667 *pColor = ReplaceHSV(*pColor, 1.0, fSaturation, -1.0);
667 return true; 668 return true;
668 } 669 }
669 else 670 else
670 return false; 671 return false;
671 } 672 }
672 673
673 //----- (0044EE30) -------------------------------------------------------- 674 //----- (0044EE30) --------------------------------------------------------
674 bool Game::_44EE30(ODMFace *a2, int a3) 675 bool Game::AlterGamma_ODM(ODMFace *pFace, unsigned int *pColor)
675 { 676 {
676 if (uFlags2 & 0x2 && a2->uAttributes & 0x02) 677 if (uFlags2 & GAME_FLAGS_2_SATURATE_LIGHTMAPS &&
677 { 678 pFace->uAttributes & FACE_CAN_SATURATE_COLOR)
678 *(int *)a3 = ReplaceHSV(*(int *)a3, 1.0, fSaturation, -1.0); 679 {
680 *pColor = ReplaceHSV(*pColor, 1.0, fSaturation, -1.0);
679 return true; 681 return true;
680 } 682 }
681 else 683 else
682 return false; 684 return false;
683 } 685 }