diff options
Diffstat (limited to 'src/game/client/gc_console.cpp')
| -rw-r--r-- | src/game/client/gc_console.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/client/gc_console.cpp b/src/game/client/gc_console.cpp index 2eb4dc52..f6e881df 100644 --- a/src/game/client/gc_console.cpp +++ b/src/game/client/gc_console.cpp @@ -16,6 +16,10 @@ extern "C" { #include "../g_version.h" +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + enum { CONSOLE_CLOSED, @@ -28,7 +32,7 @@ static unsigned int console_input_len = 0; static char console_input[256] = {0}; static int console_state = CONSOLE_CLOSED; static float state_change_end = 0.0f; -static const float state_change_duration = 0.2f; +static const float state_change_duration = 0.1f; static char backlog[256][256] = {{0}}; static int backlog_len; @@ -175,7 +179,7 @@ void console_toggle() static float console_scale_func(float t) { //return t; - return cosf((1.0f-t)*M_PI*0.5f); + return sinf(acosf(1.0f-t)); } void console_render() |