mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
reparation dash plus supression des warning
This commit is contained in:
@ -214,8 +214,8 @@ struct Vector2 {
|
||||
|
||||
inline Vector2 snapped(const Vector2 &p_by) const {
|
||||
return Vector2(
|
||||
p_by.x != 0 ? ::floor(x / p_by.x + 0.5) * p_by.x : x,
|
||||
p_by.y != 0 ? ::floor(y / p_by.y + 0.5) * p_by.y : y);
|
||||
p_by.x != 0.0f ? ::floor(x / p_by.x + 0.5f) * p_by.x : x,
|
||||
p_by.y != 0.0f ? ::floor(y / p_by.y + 0.5f) * p_by.y : y);
|
||||
}
|
||||
|
||||
inline real_t aspect() const { return width / height; }
|
||||
|
Reference in New Issue
Block a user