changeset 128:32805a956f49

4.11.12
author Ritor1
date Sun, 04 Nov 2012 17:03:51 +0600
parents 9eac46182d8f
children fe45d65251a5
files Outdoor.cpp PaletteManager.h
diffstat 2 files changed, 21 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- 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();
     }
   }
--- 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;