diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-06 02:11:18 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 02:11:18 +0700 |
| commit | 55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch) | |
| tree | 953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.Client/Common/Tutorial/ControllerTask.cpp | |
| parent | 7d6658fe5b3095f35093701b5ab669ffc291e875 (diff) | |
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.Client/Common/Tutorial/ControllerTask.cpp')
| -rw-r--r-- | Minecraft.Client/Common/Tutorial/ControllerTask.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Minecraft.Client/Common/Tutorial/ControllerTask.cpp b/Minecraft.Client/Common/Tutorial/ControllerTask.cpp index c3a42120..379e117c 100644 --- a/Minecraft.Client/Common/Tutorial/ControllerTask.cpp +++ b/Minecraft.Client/Common/Tutorial/ControllerTask.cpp @@ -53,15 +53,15 @@ bool ControllerTask::isCompleted() if(m_bHasSouthpaw && app.GetGameSettings(pMinecraft->player->GetXboxPad(),eGameSetting_ControlSouthPaw)) { - for(AUTO_VAR(it, southpawCompletedMappings.begin()); it != southpawCompletedMappings.end(); ++it) + for (auto& it : southpawCompletedMappings ) { - bool current = (*it).second; + bool current = it.second; if(!current) { // TODO Use a different pad - if( InputManager.GetValue(pMinecraft->player->GetXboxPad(), (*it).first) > 0 ) + if( InputManager.GetValue(pMinecraft->player->GetXboxPad(), it.first) > 0 ) { - (*it).second = true; + it.second = true; m_uiCompletionMask|=1<<iCurrent; } else @@ -78,15 +78,15 @@ bool ControllerTask::isCompleted() } else { - for(AUTO_VAR(it, completedMappings.begin()); it != completedMappings.end(); ++it) + for (auto& it : completedMappings ) { - bool current = (*it).second; + bool current = it.second; if(!current) { // TODO Use a different pad - if( InputManager.GetValue(pMinecraft->player->GetXboxPad(), (*it).first) > 0 ) + if( InputManager.GetValue(pMinecraft->player->GetXboxPad(), it.first) > 0 ) { - (*it).second = true; + it.second = true; m_uiCompletionMask|=1<<iCurrent; } else |
