diff Chest.cpp @ 822:c232f160e6f3

Named SpriteObject spell-related fields.
author Nomad
date Tue, 26 Mar 2013 17:56:24 +0200
parents d6236f6a9882
children c1da83d8223f
line wrap: on
line diff
--- a/Chest.cpp	Tue Mar 26 14:55:43 2013 +0200
+++ b/Chest.cpp	Tue Mar 26 17:56:24 2013 +0200
@@ -37,7 +37,7 @@
 
 //----- (0042041E) --------------------------------------------------------
 bool Chest::Open( signed int uChestID )
-    {
+{
   //char *v1; // edi@5
   unsigned int v2; // eax@8
   GUIWindow *v3; // eax@15
@@ -180,9 +180,9 @@
     a1.stru_24.Reset();
     v24 = *(short *)v23;
     v25 = 0;
-    a1.field_50 = 0;
-    a1.field_4C = 0;
-    a1.field_48 = 0;
+    a1.spell_skill = 0;
+    a1.spell_level = 0;
+    a1.spell_id = 0;
     a1.field_54 = 0;
     a1.uType = v24;
     if ( (signed int)pObjectList->uNumObjects <= 0 )
@@ -210,7 +210,7 @@
     a1.uAttributes = 48;
     a1.uSectorID = pIndoor->GetSector(pOut.x, pOut.z, pOut.y);
     a1.uSpriteFrameID = 0;
-    a1.field_58_pid = 0;
+    a1.spell_caster_pid = 0;
     a1.field_5C = 0;
     a1.uFacing = 0;
     a1.Create(0, 0, 0, 0);