11 if (this->
pFrames[i].expression == expression)
return i;
18 unsigned int uFrameID) {
27 if (this->
pFrames[uFramesetID].uFlags & 1 &&
28 (v6 = this->
pFrames[uFramesetID].uAnimLength) != 0) {
29 v7 = ((
signed int)uFrameID >> 3) % (
unsigned __int16)v6;
38 result = &this->
pFrames[uFramesetID];
51 if (v5 < 8 * this->
pFrames[*pFramesetID].uAnimTime) {
58 return &this->
pFrames[*pFramesetID];
70 v2 = fopen(
"data\\dpft.bin",
"wb");
72 if (!
v2) Error(
"Unable to save dpft.bin");
74 fwrite(
v1->pFrames, 0xAu,
v1->uNumFrames,
v3);
81 uint num_mm6_frames = data_mm6 ? *(
int *)data_mm6 : 0,
82 num_mm7_frames = data_mm7 ? *(
int *)data_mm7 : 0,
83 num_mm8_frames = data_mm8 ? *(
int *)data_mm8 : 0;
84 uNumFrames = num_mm6_frames + num_mm7_frames + num_mm8_frames;
86 assert(!num_mm8_frames);
90 memcpy(
pFrames + num_mm7_frames, (
char *)data_mm6 + 4,
92 memcpy(
pFrames + num_mm6_frames + num_mm7_frames, (
char *)data_mm8 + 4,
127 v3 = fopen(Args,
"r");
129 if (!
v3) Error(
"PlayerFrameTable::load - Unable to open file: %s.", Args);
133 if (fgets(&Buf, 490,
v3)) {
135 *strchr(&Buf, 10) = 0;
140 "PlayerFrameTable::load, too few arguments, %s line "
146 }
while (fgets(&Buf, 490, File));
152 if (!v5) Error(
"PlayerFrameTable::load - Out of Memory!");
156 for (i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File)) {
157 *strchr(&Buf, 10) = 0;
183 for (v14 = 0; v14 < this->
uNumFrames - 1; ++v14) {
184 v16 = (int)&this->
pFrames[v15];
185 if (!(*(
char *)(v16 + 18) & 4)) this->
pFrames[v14].uFlags |= 1;
189 for (k = 0; k < (
signed int)this->
uNumFrames; *(
short *)(Argsa + 6) = v19) {
191 Argsa = (int)&this->
pFrames[k];
192 v19 = *(
short *)(Argsa + 4);
193 if (this->
pFrames[k].uFlags & 1) {
197 v19 += *(
short *)(
l + 4);