]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
Refactor the code to make r_view and r_viewcache members of r_refdef,
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index da545f49a0e771d460541e71d96fde591287908b..ce98923cb229dae3dc13ecfbe203956618488ef2 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1108,7 +1108,7 @@ void Sbar_ShowFPS(void)
                                break;
                        case 5:
                                unit = "knots";
-                               f = 0.0254 * 1.852;
+                               f = 0.0254 * 1.943844492; // 1 m/s = 1.943844492 knots, because 1 knot = 1.852 km/h
                                if(gamemode != GAME_NEXUIZ) f *= 1.5;
                                break;
                }