minor code "fixes"

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7276 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2013-03-02 15:04:23 +00:00
parent 318bc97a0f
commit 31c0d29bc2
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -1051,7 +1051,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
glPushMatrix();
glOrtho(0, VIRTW, VIRTH, 0, -1, 1);
glScalef(0.8, 0.8, 1);
draw_textf("Speed: %.2f", VIRTW/2, VIRTH, sqrtf(p->vel.x*p->vel.x + p->vel.y*p->vel.y));
draw_textf("Speed: %.2f", VIRTW/2, VIRTH, p->vel.magnitudexy());
glPopMatrix();
}