@@ -603,6 +603,9 @@ bool CGameSA::IsCheatEnabled(const char* szCheatName)
603603    if  (!strcmp (szCheatName, PROP_UNDERWORLD_WARP))
604604        return  IsUnderWorldWarpEnabled ();
605605
606+     if  (!strcmp (szCheatName, PROP_CORONA_REFLECTIONS))
607+         return  IsCoronaReflectionsEnabled ();
608+ 
606609    std::map<std::string, SCheatSA*>::iterator it = m_Cheats.find (szCheatName);
607610    if  (it == m_Cheats.end ())
608611        return  false ;
@@ -635,6 +638,12 @@ bool CGameSA::SetCheatEnabled(const char* szCheatName, bool bEnable)
635638        return  true ;
636639    }
637640
641+     if  (!strcmp (szCheatName, PROP_CORONA_REFLECTIONS))
642+     {
643+         SetCoronaReflectionsEnabled (bEnable);
644+         return  true ;
645+     }
646+ 
638647    std::map<std::string, SCheatSA*>::iterator it = m_Cheats.find (szCheatName);
639648    if  (it == m_Cheats.end ())
640649        return  false ;
@@ -651,6 +660,7 @@ void CGameSA::ResetCheats()
651660    SetMoonEasterEggEnabled (false );
652661    SetExtraAirResistanceEnabled (true );
653662    SetUnderWorldWarpEnabled (true );
663+     SetCoronaReflectionsEnabled (true );
654664
655665    std::map<std::string, SCheatSA*>::iterator it;
656666    for  (it = m_Cheats.begin (); it != m_Cheats.end (); it++)
@@ -707,6 +717,25 @@ bool CGameSA::IsUnderWorldWarpEnabled()
707717    return  !m_bUnderworldWarp;
708718}
709719
720+ void  CGameSA::SetCoronaReflectionsEnabled (bool  bEnabled)
721+ {
722+     //  Restore or disable calls to CCoronas::RenderReflections
723+     if (bEnabled) {
724+         MemCpy ((void *)0x53DFD8 , " \xE8\x53\xD6\x1B\x00 "  , 5 );
725+         MemCpy ((void *)0x53DCAC , " \xE8\x7F\xD9\x1B\x00 "  , 5 );
726+     }
727+     else  {
728+         MemSet ((void *)0x53DFD8 , 0x90 , 5 );
729+         MemSet ((void *)0x53DCAC , 0x90 , 5 );
730+     }
731+     m_bCoronaReflections = bEnabled;
732+ }
733+ 
734+ bool  CGameSA::IsCoronaReflectionsEnabled ()
735+ {
736+     return  m_bCoronaReflections;
737+ }
738+ 
710739bool  CGameSA::GetJetpackWeaponEnabled (eWeaponType weaponType)
711740{
712741    if  (weaponType >= WEAPONTYPE_BRASSKNUCKLE && weaponType < WEAPONTYPE_LAST_WEAPONTYPE)
0 commit comments