23 for (
unsigned int i = 0; i < this->
uNumIcons; i++) {
24 if (!_stricmp(pIconName, this->
pIcons[i].GetAnimationName()))
33 if (!_stricmp(pIconName, this->
pIcons[i].GetAnimationName()))
return i;
43 if (this->
pIcons[uIconID].uFlags & 1 &&
44 this->
pIcons[uIconID].GetAnimLength() != 0) {
51 t -= this->
pIcons[i].GetAnimTime();
54 return &this->
pIcons[uIconID];
60 if (uIconID && (
signed int)uIconID <= (
signed int)this->
uNumIcons) {
61 for (
uint i = uIconID;; ++i) {
62 if (!(this->
pIcons[i].uFlags & 1)) {
78 v2 = fopen(
"data\\dift.bin",
"wb");
80 if (!
v2) Error(
"Unable to save dift.bin!");
81 fwrite(
this, 4, 1,
v2);
88 uint num_mm6_frames = data_mm6 ? *(
int *)data_mm6 : 0,
89 num_mm7_frames = data_mm7 ? *(
int *)data_mm7 : 0,
90 num_mm8_frames = data_mm8 ? *(
int *)data_mm8 : 0;
92 uNumIcons = num_mm6_frames + num_mm7_frames + num_mm8_frames;
94 Assert(!num_mm6_frames);
95 Assert(!num_mm8_frames);
104 memcpy(
pIcons, (
char *)data_mm7 + 4,
112 for (
unsigned int i = 0; i <
uNumIcons; ++i) {
113 pIcons[i].Deserialize(&this->pIcons[i]);
115 this->pIcons[i].id = i;