Mercurial > mm7
comparison Chest.cpp @ 822:c232f160e6f3
Named SpriteObject spell-related fields.
author | Nomad |
---|---|
date | Tue, 26 Mar 2013 17:56:24 +0200 |
parents | d6236f6a9882 |
children | c1da83d8223f |
comparison
equal
deleted
inserted
replaced
820:522591080ac5 | 822:c232f160e6f3 |
---|---|
35 const int pChestHeightsByType[8] = {9, 9, 9, 9, 9, 9, 9, 9}; | 35 const int pChestHeightsByType[8] = {9, 9, 9, 9, 9, 9, 9, 9}; |
36 | 36 |
37 | 37 |
38 //----- (0042041E) -------------------------------------------------------- | 38 //----- (0042041E) -------------------------------------------------------- |
39 bool Chest::Open( signed int uChestID ) | 39 bool Chest::Open( signed int uChestID ) |
40 { | 40 { |
41 //char *v1; // edi@5 | 41 //char *v1; // edi@5 |
42 unsigned int v2; // eax@8 | 42 unsigned int v2; // eax@8 |
43 GUIWindow *v3; // eax@15 | 43 GUIWindow *v3; // eax@15 |
44 int v5; // edx@16 | 44 int v5; // edx@16 |
45 int v6; // eax@16 | 45 int v6; // eax@16 |
178 //SpriteObject::SpriteObject(&a1); | 178 //SpriteObject::SpriteObject(&a1); |
179 | 179 |
180 a1.stru_24.Reset(); | 180 a1.stru_24.Reset(); |
181 v24 = *(short *)v23; | 181 v24 = *(short *)v23; |
182 v25 = 0; | 182 v25 = 0; |
183 a1.field_50 = 0; | 183 a1.spell_skill = 0; |
184 a1.field_4C = 0; | 184 a1.spell_level = 0; |
185 a1.field_48 = 0; | 185 a1.spell_id = 0; |
186 a1.field_54 = 0; | 186 a1.field_54 = 0; |
187 a1.uType = v24; | 187 a1.uType = v24; |
188 if ( (signed int)pObjectList->uNumObjects <= 0 ) | 188 if ( (signed int)pObjectList->uNumObjects <= 0 ) |
189 { | 189 { |
190 LABEL_32: | 190 LABEL_32: |
208 a1.vPosition.z = pOut.y; | 208 a1.vPosition.z = pOut.y; |
209 a1.uSoundID = 0; | 209 a1.uSoundID = 0; |
210 a1.uAttributes = 48; | 210 a1.uAttributes = 48; |
211 a1.uSectorID = pIndoor->GetSector(pOut.x, pOut.z, pOut.y); | 211 a1.uSectorID = pIndoor->GetSector(pOut.x, pOut.z, pOut.y); |
212 a1.uSpriteFrameID = 0; | 212 a1.uSpriteFrameID = 0; |
213 a1.field_58_pid = 0; | 213 a1.spell_caster_pid = 0; |
214 a1.field_5C = 0; | 214 a1.field_5C = 0; |
215 a1.uFacing = 0; | 215 a1.uFacing = 0; |
216 a1.Create(0, 0, 0, 0); | 216 a1.Create(0, 0, 0, 0); |
217 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); | 217 pAudioPlayer->PlaySound(SOUND_8, 0, 0, -1, 0, 0, 0, 0); |
218 a1._438E35(); | 218 a1._438E35(); |