forked from jaildesigner-jailgames/jaildoctors_dilemma
Corregits mil warnings de int a float
Corregit getDisplayInfo per al calcul del zoomMax
This commit is contained in:
@@ -232,7 +232,7 @@ SDL_FPoint checkCollision(const Line& l1, const Line& l2) {
|
||||
const float x = x1 + (uA * (x2 - x1));
|
||||
const float y = y1 + (uA * (y2 - y1));
|
||||
|
||||
return {(int)round(x), (int)round(y)};
|
||||
return {(float)round(x), (float)round(y)};
|
||||
}
|
||||
return {-1, -1};
|
||||
}
|
||||
@@ -259,7 +259,7 @@ SDL_FPoint checkCollision(const LineDiagonal& l1, const LineVertical& l2) {
|
||||
const float x = x1 + (uA * (x2 - x1));
|
||||
const float y = y1 + (uA * (y2 - y1));
|
||||
|
||||
return {(int)x, (int)y};
|
||||
return {(float)x, (float)y};
|
||||
}
|
||||
return {-1, -1};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user