Mercurial > mm7
comparison mm7_3.cpp @ 1515:46f6fc6f72fd
Clean :-)
author | yoctozepto |
---|---|
date | Tue, 03 Sep 2013 15:29:09 +0200 |
parents | ff1867836af5 |
children | f3cd08b89476 |
comparison
equal
deleted
inserted
replaced
1514:965af46e8793 | 1515:46f6fc6f72fd |
---|---|
7188 } | 7188 } |
7189 } | 7189 } |
7190 } | 7190 } |
7191 | 7191 |
7192 //----- (0044882F) -------------------------------------------------------- | 7192 //----- (0044882F) -------------------------------------------------------- |
7193 void __fastcall SetDecorationSprite(unsigned int uCog, int a2, const char *pFileName) | 7193 void __fastcall SetDecorationSprite(uint16_t uCog, bool bHide, const char *pFileName) |
7194 { | 7194 { |
7195 signed int v3; // ebp@1 | 7195 for (size_t i = 0; i < uNumLevelDecorations; i++) |
7196 char *v4; // esi@2 | 7196 { |
7197 unsigned __int16 v5; // ax@6 | 7197 if (pLevelDecorations[i].uCog == uCog) |
7198 unsigned int v6; // [sp+4h] [bp-8h]@1 | 7198 { |
7199 int v7; // [sp+8h] [bp-4h]@1 | 7199 if (pFileName && strcmp(pFileName, "0")) |
7200 | 7200 { |
7201 v3 = 0; | 7201 pLevelDecorations[i].uDecorationDescID = pDecorationList->GetDecorIdByName(pFileName); |
7202 v7 = a2; | 7202 pDecorationList->InitializeDecorationSprite(pLevelDecorations[i].uDecorationDescID); |
7203 v6 = uCog; | 7203 } |
7204 if ( (signed int)uNumLevelDecorations > 0 ) | 7204 |
7205 { | 7205 if (bHide) |
7206 v4 = (char *)&pLevelDecorations[0].uFlags; | 7206 pLevelDecorations[i].uFlags &= ~LEVEL_DECORATION_INVISIBLE; |
7207 do | 7207 else |
7208 { | 7208 pLevelDecorations[i].uFlags |= LEVEL_DECORATION_INVISIBLE; |
7209 if ( *((_WORD *)v4 + 9) == v6 ) | 7209 |
7210 { | 7210 pParty->uFlags |= 2u; |
7211 if ( pFileName && _stricmp(pFileName, "0") ) | 7211 } |
7212 { | |
7213 v5 = pDecorationList->GetDecorIdByName(pFileName); | |
7214 *((_WORD *)v4 - 1) = v5; | |
7215 pDecorationList->InitializeDecorationSprite((signed __int16)v5); | |
7216 } | |
7217 if ( v7 ) | |
7218 *v4 &= 0xDFu; | |
7219 else | |
7220 *v4 |= 0x20u; | |
7221 pParty->uFlags |= 2u; | |
7222 } | |
7223 ++v3; | |
7224 v4 += 32; | |
7225 } | |
7226 while ( v3 < (signed int)uNumLevelDecorations ); | |
7227 } | 7212 } |
7228 } | 7213 } |
7229 | 7214 |
7230 //----- (0044892E) -------------------------------------------------------- | 7215 //----- (0044892E) -------------------------------------------------------- |
7231 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on) | 7216 void __fastcall sub_44892E_set_faces_bit(int sCogNumber, int bit, int on) |