Skip to content

Commit

Permalink
Removed non-portable (to <=VS2010) auto keywords.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan O'Malley committed Oct 18, 2016
1 parent 7babd6f commit 6c9ed51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SFVChains/SFVChains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void GenerateHitConfirms(ComboList& confirm_combos_final, iCharacter* fighter){
cout << "==Confirm Combos Processing==\nSeed combos in queue:\nFinal combos:";
ComboList confirm_combos_working;
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(),
[&](auto& i) {
[&](MoveData& i) {
++task_count;
updateMaxTasks(task_count);
if (i.blockAdv() > -3 &&
Expand All @@ -76,7 +76,7 @@ void GenerateHitConfirms(ComboList& confirm_combos_final, iCharacter* fighter){
++task_count;
updateMaxTasks(task_count);
group.run([&, combo] {
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(), [&] (auto &j){
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(), [&] (MoveData &j){
if (((j.hasAnyType(MoveData::kMVT_Air)) == 0 || combo.back()->canCancelInto(MoveData::kMVT_Air)) && // only allow air follow up if it's cancelled into
!j.isWhiffable() && // don't hit confirm with whiffables
j.notAllTypes(MoveData::kMVT_VT | MoveData::kMVT_VR | MoveData::kMVT_CA | MoveData::kMVT_EX) && // dont' waste EX, V, or CA on hit confirms
Expand Down Expand Up @@ -119,7 +119,7 @@ void GenerateBasicCombos(ComboList& basic_combos_final, iCharacter* fighter){
cout << "==Basic Combos Processing==\nSeed combos in queue:\nFinal combos:";
ComboList basic_combos_working;
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(),
[&](auto& i) {
[&](MoveData& i) {
++task_count;
updateMaxTasks(task_count);
if ((i.hitAdv() > 2 &&
Expand All @@ -140,7 +140,7 @@ void GenerateBasicCombos(ComboList& basic_combos_final, iCharacter* fighter){
updateMaxTasks(task_count);
group.run([&, combo] {
bool added = false;
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(), [&](auto &j) {
parallel_for_each(fighter->_moves.begin(), fighter->_moves.end(), [&](MoveData &j) {
if (!combo.back()->isKnockDown(true) && combo.back()->notAnyType(MoveData::kMVT_Throw | MoveData::kMVT_AirThrow) && // last move wasn't hard KD or throw
(j.notAllTypes(MoveData::kMVT_AirThrow) || combo.back()->hasAnyType(MoveData::kMVT_Reset)) && // only air throw out of a reset (unlikely)
(j.notAllTypes(MoveData::kMVT_Air) || combo.back()->canCancelInto(MoveData::kMVT_Air)) && // only cancel into an air move, can't link air->air
Expand Down

0 comments on commit 6c9ed51

Please sign in to comment.