Fixed compiler warning (double to float).
Try fixing #1713 (crash pessing ESC on login screen).