fix: arreglades les colisions "the static cast menner"

This commit is contained in:
2025-10-16 14:14:33 +02:00
parent 9db902c024
commit 545d471654
4 changed files with 55 additions and 26 deletions

View File

@@ -1043,7 +1043,7 @@ bool Room::checkAutoSurfaces(SDL_FPoint* p) {
// Comprueba las colisiones
int Room::checkLeftSlopes(const LineVertical* line) {
for (const auto& slope : left_slopes_) {
const SDL_FPoint p = checkCollision(slope, *line);
const auto p = checkCollision(slope, *line);
if (p.x != -1) {
return p.y;
}
@@ -1066,7 +1066,7 @@ bool Room::checkLeftSlopes(SDL_FPoint* p) {
// Comprueba las colisiones
int Room::checkRightSlopes(const LineVertical* line) {
for (const auto& slope : right_slopes_) {
const SDL_FPoint p = checkCollision(slope, *line);
const auto p = checkCollision(slope, *line);
if (p.x != -1) {
return p.y;
}