forked from jaildesigner-jailgames/jaildoctors_dilemma
fix: arreglades les colisions "the static cast menner"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user