remove all instances of round()

VS2008 doesn't have round() in math.h and the old inline function (removed
in 50d1413d, had problems in newer compilers). Now floor() or straight
casting to int is used. Let's see, which MS compiler will trip on that...
This commit is contained in:
ac-stef
2015-09-24 19:51:50 +02:00
parent b06a5209e3
commit 917df65a51
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1155,7 +1155,7 @@ void gl_drawframe(int w, int h, float changelod, float curfps)
tagclipcubes.setsize(0);
extern vector<vertex> verts;
gl_drawhud(w, h, (int)round(curfps), nquads, verts.length(), underwater);
gl_drawhud(w, h, int(curfps + 0.5f), nquads, verts.length(), underwater);
glEnable(GL_CULL_FACE);
glEnable(GL_FOG);