This commit is contained in:
2025-11-07 17:58:47 +01:00
parent 6e3cd05cd2
commit 2c92fe8372
7 changed files with 18 additions and 27 deletions

View File

@@ -525,8 +525,6 @@ void Player::playFallSound() {
// Comprueba si el jugador tiene suelo debajo de los pies
auto Player::isOnFloor() -> bool {
bool on_floor = false;
bool on_slope_l = false;
bool on_slope_r = false;
updateFeet();
@@ -537,8 +535,8 @@ auto Player::isOnFloor() -> bool {
}
// Comprueba las rampas
on_slope_l = room_->checkLeftSlopes(under_feet_.data());
on_slope_r = room_->checkRightSlopes(&under_feet_[1]);
auto on_slope_l = room_->checkLeftSlopes(under_feet_.data());
auto on_slope_r = room_->checkRightSlopes(&under_feet_[1]);
return on_floor || on_slope_l || on_slope_r;
}