annotate PlayerFrameTable.cpp @ 2497:82d5d92a097c

for MVS2012
author Ritor1
date Thu, 18 Sep 2014 23:59:29 +0600
parents 0f17a30149ec
children
rev   line source
2463
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
1 #define _CRTDBG_MAP_ALLOC
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
2 #include <stdlib.h>
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
3 #include <crtdbg.h>
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
4
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
5 #define _CRT_SECURE_NO_WARNINGS
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
6
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
7 #include "PlayerFrameTable.h"
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
8
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
9 #include "ErrorHandling.h"
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
10 #include "FrameTableInc.h"
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
11 #include "mm7_data.h"
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
12
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
13
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
14 //----- (00494AED) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
15 unsigned int PlayerFrameTable::GetFrameIdByExpression(CHARACTER_EXPRESSION_ID expression)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
16 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
17 for (uint i = 0; i < this->uNumFrames; i++)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
18 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
19 if (this->pFrames[i].expression == expression)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
20 return i;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
21 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
22 return 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
23 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
24
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
25 //----- (00494B10) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
26 PlayerFrame *PlayerFrameTable::GetFrameBy_x(unsigned int uFramesetID, unsigned int uFrameID)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
27 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
28 unsigned int v3; // esi@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
29 __int16 v6; // dx@2
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
30 int v7; // edx@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
31 char *i; // eax@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
32 int v9; // ecx@5
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
33 PlayerFrame *result; // eax@6
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
34
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
35 v3 = uFramesetID;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
36 if (this->pFrames[uFramesetID].uFlags & 1 && (v6 = this->pFrames[uFramesetID].uAnimLength) != 0)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
37 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
38 v7 = ((signed int)uFrameID >> 3) % (unsigned __int16)v6;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
39 for (i = (char *)&this->pFrames[uFramesetID].uAnimTime;; i += 10)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
40 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
41 v9 = *(short *)i;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
42 if (v7 <= v9)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
43 break;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
44 v7 -= v9;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
45 ++v3;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
46 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
47 result = &this->pFrames[v3];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
48 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
49 else
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
50 result = &this->pFrames[uFramesetID];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
51 return result;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
52 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
53
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
54 //----- (00494B5E) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
55 PlayerFrame *PlayerFrameTable::GetFrameBy_y(int *pFramesetID, int *pAnimTime, int a4)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
56 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
57 int v5; // esi@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
58 int v6; // eax@2
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
59
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
60 v5 = a4 + *pAnimTime;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
61 if (v5 < 8 * this->pFrames[*pFramesetID].uAnimTime)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
62 *pAnimTime = v5;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
63 else
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
64 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
65 v6 = rand() % 4 + 21;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
66 *pFramesetID = v6;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
67 *pAnimTime = 8 * v5 % this->pFrames[v6].uAnimTime;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
68 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
69 return &this->pFrames[*pFramesetID];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
70 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
71
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
72 //----- (00494BC3) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
73 void PlayerFrameTable::ToFile()
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
74 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
75 PlayerFrameTable *v1; // esi@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
76 FILE *v2; // eax@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
77 FILE *v3; // edi@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
78
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
79 PlayerFrameTable* Str = this;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
80
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
81 v1 = Str;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
82 v2 = fopen("data\\dpft.bin", "wb");
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
83 v3 = v2;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
84 if (!v2)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
85 Error("Unable to save dpft.bin");
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
86 fwrite(v1, 4, 1, v2);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
87 fwrite(v1->pFrames, 0xAu, v1->uNumFrames, v3);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
88 fclose(v3);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
89 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
90
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
91 //----- (00494C0F) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
92 void PlayerFrameTable::FromFile(void *data_mm6, void *data_mm7, void *data_mm8)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
93 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
94 uint num_mm6_frames = data_mm6 ? *(int *)data_mm6 : 0,
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
95 num_mm7_frames = data_mm7 ? *(int *)data_mm7 : 0,
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
96 num_mm8_frames = data_mm8 ? *(int *)data_mm8 : 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
97 uNumFrames = num_mm6_frames + num_mm7_frames + num_mm8_frames;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
98 assert(uNumFrames);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
99 assert(!num_mm8_frames);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
100
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
101 pFrames = (PlayerFrame *)malloc(uNumFrames * sizeof(PlayerFrame));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
102 memcpy(pFrames, (char *)data_mm7 + 4, num_mm7_frames * sizeof(PlayerFrame));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
103 memcpy(pFrames + num_mm7_frames, (char *)data_mm6 + 4, num_mm6_frames * sizeof(PlayerFrame));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
104 memcpy(pFrames + num_mm6_frames + num_mm7_frames, (char *)data_mm8 + 4, num_mm8_frames * sizeof(PlayerFrame));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
105 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
106
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
107 //----- (00494C5A) --------------------------------------------------------
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
108 int PlayerFrameTable::FromFileTxt(const char *Args)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
109 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
110 //PlayerFrameTable *v2; // ebx@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
111 FILE *v3; // eax@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
112 int v4; // esi@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
113 void *v5; // eax@10
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
114 FILE *v6; // ST0C_4@12
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
115 char *i; // eax@12
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
116 // __int16 v8; // ax@15
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
117 // const char *v9; // ST10_4@15
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
118 // unsigned __int16 v10; // ax@15
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
119 // const char *v11; // ST0C_4@15
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
120 int j; // esi@15
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
121 // int v13; // eax@17
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
122 int v14; // edx@22
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
123 int v15; // ecx@23
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
124 int v16; // eax@24
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
125 signed int k; // eax@27
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
126 //PlayerFrame *v18; // edx@28
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
127 int v19; // esi@28
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
128 int l; // ecx@29
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
129 char Buf; // [sp+Ch] [bp-2F8h]@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
130 FrameTableTxtLine v23; // [sp+200h] [bp-104h]@4
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
131 FrameTableTxtLine v24; // [sp+27Ch] [bp-88h]@4
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
132 int v25; // [sp+2F8h] [bp-Ch]@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
133 int v26; // [sp+2FCh] [bp-8h]@3
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
134 FILE *File; // [sp+300h] [bp-4h]@1
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
135 int Argsa; // [sp+30Ch] [bp+8h]@28
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
136
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
137 __debugbreak();//Ritor1;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
138 //TileTable::dtor((TileTable *)this);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
139 v3 = fopen(Args, "r");
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
140 File = v3;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
141 if (!v3)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
142 Error("PlayerFrameTable::load - Unable to open file: %s.", Args);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
143 v4 = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
144 v25 = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
145 v26 = 1;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
146 if (fgets(&Buf, 490, v3))
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
147 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
148 do
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
149 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
150 *strchr(&Buf, 10) = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
151 memcpy(&v24, txt_file_frametable_parser(&Buf, &v23), sizeof(v24));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
152 if (v24.uPropCount && *v24.pProperties[0] != 47)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
153 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
154 if (v24.uPropCount < 3)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
155 Error("PlayerFrameTable::load, too few arguments, %s line %i.", Args, v26);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
156 ++v25;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
157 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
158 ++v26;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
159 } while (fgets(&Buf, 490, File));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
160 v4 = v25;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
161 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
162 this->uNumFrames = v4;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
163 v5 = malloc(10 * v4);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
164 this->pFrames = (PlayerFrame *)v5;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
165 if (!v5)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
166 Error("PlayerFrameTable::load - Out of Memory!");
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
167 v6 = File;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
168 this->uNumFrames = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
169 fseek(v6, 0, 0);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
170 for (i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File))
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
171 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
172 *strchr(&Buf, 10) = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
173 memcpy(&v24, txt_file_frametable_parser(&Buf, &v23), sizeof(v24));
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
174 if (v24.uPropCount && *v24.pProperties[0] != 47)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
175 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
176 //v8 = atoi(v24.pProperties[0]);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
177 //v9 = v24.pProperties[1];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
178 this->pFrames[this->uNumFrames].expression = (CHARACTER_EXPRESSION_ID)atoi(v24.pProperties[0]);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
179 //v10 = atoi(v9);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
180 //v11 = v24.pProperties[2];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
181 this->pFrames[this->uNumFrames].uTextureID = atoi(v24.pProperties[1]);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
182 this->pFrames[this->uNumFrames].uAnimTime = atoi(v24.pProperties[2]);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
183 this->pFrames[this->uNumFrames].uAnimLength = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
184 this->pFrames[this->uNumFrames].uFlags = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
185 for (j = 3; j < v24.uPropCount; ++j)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
186 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
187 if (!_stricmp(v24.pProperties[j], "New"))
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
188 this->pFrames[this->uNumFrames].uFlags |= 4;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
189 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
190 ++this->uNumFrames;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
191 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
192 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
193 fclose(File);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
194
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
195 if ((signed int)(this->uNumFrames - 1) > 0)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
196 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
197 v15 = 0;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
198 for (v14 = 0; v14 < this->uNumFrames - 1; ++v14)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
199 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
200 v16 = (int)&this->pFrames[v15];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
201 if (!(*(char *)(v16 + 18) & 4))
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
202 this->pFrames[v14].uFlags |= 1;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
203 ++v15;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
204 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
205 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
206 for (k = 0; k < (signed int)this->uNumFrames; *(short *)(Argsa + 6) = v19)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
207 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
208 //v18 = this->pFrames;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
209 Argsa = (int)&this->pFrames[k];
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
210 v19 = *(short *)(Argsa + 4);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
211 if (this->pFrames[k].uFlags & 1)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
212 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
213 ++k;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
214 for (l = (int)&this->pFrames[k]; this->pFrames[k].uFlags & 1; l += 10)
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
215 {
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
216 v19 += *(short *)(l + 4);
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
217 ++k;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
218 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
219 LOWORD(v19) = this->pFrames[k].uAnimTime + v19;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
220 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
221 ++k;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
222 }
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
223 return 1;
0f17a30149ec cleaning project part 1
zipi
parents:
diff changeset
224 }