clang-tidy readability-function-cognitive-complexity
This commit is contained in:
@@ -185,7 +185,8 @@ auto Item::getCoffeeMachineSpawn(int player_x, int item_width, int area_width, i
|
||||
} // Lado derecho
|
||||
return rand() % (RIGHT_BOUND - exclude_right) + exclude_right;
|
||||
|
||||
} else if (can_spawn_left) {
|
||||
}
|
||||
if (can_spawn_left) {
|
||||
// Solo lado izquierdo disponible
|
||||
return rand() % (exclude_left - LEFT_BOUND) + LEFT_BOUND;
|
||||
} else if (can_spawn_right) {
|
||||
|
||||
Reference in New Issue
Block a user