# HG changeset patch # User Ritor1 # Date 1352027031 -21600 # Node ID 32805a956f49faa836e44b3e6b493c5a56e3c3dd # Parent 9eac46182d8f2842173d6b0144ada20e6feb4915 4.11.12 diff -r 9eac46182d8f -r 32805a956f49 Outdoor.cpp --- a/Outdoor.cpp Sun Nov 04 09:37:39 2012 +0600 +++ b/Outdoor.cpp Sun Nov 04 17:03:51 2012 +0600 @@ -1329,25 +1329,25 @@ if (bUnderwater) { - pPaletteManager->pPalette_tintColor[0] = 0x10; - pPaletteManager->pPalette_tintColor[1] = 0xC2; - pPaletteManager->pPalette_tintColor[2] = 0x99; - pPaletteManager->pPalette_mistColor[0] = 0x25; - pPaletteManager->pPalette_mistColor[1] = 0x8F; - pPaletteManager->pPalette_mistColor[2] = 0x5C; + pPaletteManager->field_267AD3 = 0x10; + pPaletteManager->field_267AD4 = 0xC2; + pPaletteManager->field_267AD5 = 0x99; + pPaletteManager->field_267AD0 = 0x25; + pPaletteManager->field_267AD1 = 0x8F; + pPaletteManager->field_267AD2 = 0x5C; } else { - pPaletteManager->pPalette_tintColor[0] = 0; - pPaletteManager->pPalette_tintColor[1] = 0; - pPaletteManager->pPalette_tintColor[2] = 0; - if (pPaletteManager->pPalette_mistColor[0] != 0x80 || - pPaletteManager->pPalette_mistColor[1] != 0x80 || - pPaletteManager->pPalette_mistColor[2] != 0x80) + pPaletteManager->field_267AD3 = 0; + pPaletteManager->field_267AD4 = 0; + pPaletteManager->field_267AD5 = 0; + if (pPaletteManager->field_267AD0 != 0x80 || + pPaletteManager->field_267AD1 != 0x80 || + pPaletteManager->field_267AD2 != 0x80) { - pPaletteManager->pPalette_mistColor[0] = 0x80; - pPaletteManager->pPalette_mistColor[1] = 0x80; - pPaletteManager->pPalette_mistColor[2] = 0x80; + pPaletteManager->field_267AD0 = 0x80; + pPaletteManager->field_267AD1 = 0x80; + pPaletteManager->field_267AD2 = 0x80; pPaletteManager->RecalculateAll(); } } diff -r 9eac46182d8f -r 32805a956f49 PaletteManager.h --- a/PaletteManager.h Sun Nov 04 09:37:39 2012 +0600 +++ b/PaletteManager.h Sun Nov 04 17:03:51 2012 +0600 @@ -31,8 +31,12 @@ int pPaletteIDs[50]; int _num_locked; int _pal_lock_test; - unsigned __int8 pPalette_mistColor[3]; - unsigned char pPalette_tintColor[3]; + unsigned __int8 field_267AD0; + unsigned __int8 field_267AD1; + unsigned __int8 field_267AD2; + unsigned char field_267AD3; + unsigned char field_267AD4; + unsigned char field_267AD5; char field_267AD6; char field_267AD7; unsigned int uNumTargetRBits;