Mercurial > mm7
comparison mm7_3.cpp @ 1104:5d5c78088274
strcmpi to stricmp conversion
author | Grumpy7 |
---|---|
date | Mon, 27 May 2013 21:37:14 +0200 |
parents | 8b59f13c9c3e |
children | cf6cd674c398 |
comparison
equal
deleted
inserted
replaced
1103:db395ce89ede | 1104:5d5c78088274 |
---|---|
12174 { | 12174 { |
12175 v13 = GetEventHintString(v12); | 12175 v13 = GetEventHintString(v12); |
12176 v14 = v13; | 12176 v14 = v13; |
12177 if ( v13 ) | 12177 if ( v13 ) |
12178 { | 12178 { |
12179 if ( _strcmpi(v13, "") ) | 12179 if ( _stricmp(v13, "") ) |
12180 v17 = v14; | 12180 v17 = v14; |
12181 } | 12181 } |
12182 } | 12182 } |
12183 } | 12183 } |
12184 } | 12184 } |
12668 v4 = (char *)&pLevelDecorations[0].field_2; | 12668 v4 = (char *)&pLevelDecorations[0].field_2; |
12669 do | 12669 do |
12670 { | 12670 { |
12671 if ( *((_WORD *)v4 + 9) == v6 ) | 12671 if ( *((_WORD *)v4 + 9) == v6 ) |
12672 { | 12672 { |
12673 if ( pFileName && _strcmpi(pFileName, "0") ) | 12673 if ( pFileName && _stricmp(pFileName, "0") ) |
12674 { | 12674 { |
12675 v5 = pDecorationList->GetDecorIdByName(pFileName); | 12675 v5 = pDecorationList->GetDecorIdByName(pFileName); |
12676 *((_WORD *)v4 - 1) = v5; | 12676 *((_WORD *)v4 - 1) = v5; |
12677 pDecorationList->InitializeDecorationSprite((signed __int16)v5); | 12677 pDecorationList->InitializeDecorationSprite((signed __int16)v5); |
12678 } | 12678 } |
12699 | 12699 |
12700 v2 = this; | 12700 v2 = this; |
12701 if ( pName && (uID = 1, (signed int)this->uNumDecorations > 1) ) | 12701 if ( pName && (uID = 1, (signed int)this->uNumDecorations > 1) ) |
12702 { | 12702 { |
12703 v4 = 1; | 12703 v4 = 1; |
12704 while ( _strcmpi(pName, v2->pDecorations[v4].pName) ) | 12704 while ( _stricmp(pName, v2->pDecorations[v4].pName) ) |
12705 { | 12705 { |
12706 ++uID; | 12706 ++uID; |
12707 ++v4; | 12707 ++v4; |
12708 if ( uID >= (signed int)v2->uNumDecorations ) | 12708 if ( uID >= (signed int)v2->uNumDecorations ) |
12709 goto LABEL_6; | 12709 goto LABEL_6; |
13720 const char *v2; // edi@1 | 13720 const char *v2; // edi@1 |
13721 | 13721 |
13722 v2 = pMapName; | 13722 v2 = pMapName; |
13723 pAudioPlayer->StopChannels(-1, -1); | 13723 pAudioPlayer->StopChannels(-1, -1); |
13724 pGameLoadingUI_ProgressBar->Initialize(GUIProgressBar::TYPE_None); | 13724 pGameLoadingUI_ProgressBar->Initialize(GUIProgressBar::TYPE_None); |
13725 if ( _strcmpi(pCurrentMapName, v2) ) | 13725 if ( _stricmp(pCurrentMapName, v2) ) |
13726 SaveGame(1, 0); | 13726 SaveGame(1, 0); |
13727 | 13727 |
13728 uGameState = GAME_STATE_2; | 13728 uGameState = GAME_STATE_2; |
13729 strcpy(pCurrentMapName, v2); | 13729 strcpy(pCurrentMapName, v2); |
13730 uLevel_StartingPointType = start_point; | 13730 uLevel_StartingPointType = start_point; |
13958 //----- (0044C28F) -------------------------------------------------------- | 13958 //----- (0044C28F) -------------------------------------------------------- |
13959 bool __cdecl sub_44C28F_open_nwc_dungeon() | 13959 bool __cdecl sub_44C28F_open_nwc_dungeon() |
13960 { | 13960 { |
13961 bool result; // eax@1 | 13961 bool result; // eax@1 |
13962 | 13962 |
13963 result = _strcmpi("nwc.blv", pCurrentMapName); | 13963 result = _stricmp("nwc.blv", pCurrentMapName); |
13964 if ( result ) | 13964 if ( result ) |
13965 { | 13965 { |
13966 _5B65A8_npcdata_uflags_or_other = 0; | 13966 _5B65A8_npcdata_uflags_or_other = 0; |
13967 _5B65AC_npcdata_fame_or_other = 0; | 13967 _5B65AC_npcdata_fame_or_other = 0; |
13968 _5B65B0_npcdata_rep_or_other = 0; | 13968 _5B65B0_npcdata_rep_or_other = 0; |