mirror of
https://github.com/abakh/nbsdgames.git
synced 2024-11-02 16:27:18 -04:00
one more typo in round()
This commit is contained in:
parent
6b83ef7b1b
commit
1a97f58c09
@ -34,7 +34,7 @@ int round(float x)
|
||||
z = y;
|
||||
if(x<0)
|
||||
if(x-y < -0.5)
|
||||
z = int(x -0.5);
|
||||
z = (int)(x -0.5);
|
||||
else
|
||||
z = y;
|
||||
return z;
|
||||
|
Loading…
Reference in New Issue
Block a user