refactor: extreure helpers per reduir complexitat cognitiva (tidy net)
This commit is contained in:
@@ -247,7 +247,7 @@ void Mapa::comprovaCaixa(Uint8 num) {
|
||||
}
|
||||
|
||||
// Si algun costat encara no està passat, no hi ha res que fer
|
||||
if (std::any_of(std::begin(this->tombes[num].costat), std::end(this->tombes[num].costat), [](bool c) { return !c; })) {
|
||||
if (std::ranges::any_of(this->tombes[num].costat, [](bool c) { return !c; })) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user