]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Slow initial movement
authorterencehill <piuntn@gmail.com>
Tue, 28 Jun 2011 22:30:09 +0000 (00:30 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 28 Jun 2011 22:30:09 +0000 (00:30 +0200)
qcsrc/client/hud.qc

index 978ef77706b8e7e8e6e812b257d83407b5c37425..b418a620c8da7495a177625c7b0a3bf84860b851 100644 (file)
@@ -4613,13 +4613,13 @@ void HUD_CenterPrint (void)
                {
                        pos_y = current_msg_pos_y - 0.7 * fontsize_y;
                        if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages
-                               pos_y += (msg_size + 0.7 * fontsize_y) * (1 - a*a);
+                               pos_y += (msg_size + 0.7 * fontsize_y) * (1 - sqrt(a));
                }
                else
                {
                        pos_y += 0.7 * fontsize_y;
                        if (a < 1 && centerprint_msgID[j] == 0) // messages with id can be replaced just after they are faded out, so never move over them the next messages
-                               pos_y -= (msg_size + 0.7 * fontsize_y) * (1 - a*a);
+                               pos_y -= (msg_size + 0.7 * fontsize_y) * (1 - sqrt(a));
                }
        }
        drawfontscale = '1 1 0';