1
This commit is contained in:
parent
b5d13dcb6c
commit
c8cf48e45c
@ -704,7 +704,14 @@ void Incubator::StartNewBattleMode()
|
|||||||
std::shuffle(invisable_humans.begin(),
|
std::shuffle(invisable_humans.begin(),
|
||||||
invisable_humans.end(),
|
invisable_humans.end(),
|
||||||
std::default_random_engine(a8::XGetTickCount()));
|
std::default_random_engine(a8::XGetTickCount()));
|
||||||
|
Human *killer = nullptr;
|
||||||
Human *target = invisable_humans.at(0);
|
Human *target = invisable_humans.at(0);
|
||||||
|
for (size_t i = 0; i < invisable_humans.size(); ++i) {
|
||||||
|
if (invisable_humans.at(i)->GetTeam() != target->GetTeam()) {
|
||||||
|
killer = invisable_humans.at(i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user