diff --git a/src/client/cl_console.c b/src/client/cl_console.c index c9bfabd2..b09072d3 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -565,7 +565,7 @@ Con_DrawNotify(void) x++; } - Draw_CharScaled(((x + skip) << 3) * scale, v + scale, 10 + ((cls.realtime >> 8) & 1), scale); + Draw_CharScaled(((x + skip) << 3) * scale, v * scale, 10 + ((cls.realtime >> 8) & 1), scale); v += 8; } diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 01db9e05..5e054b81 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1138,18 +1138,15 @@ Cmd_Say_f(edict_t *ent, qboolean team, qboolean arg0) i = (sizeof(cl->flood_when) / sizeof(cl->flood_when[0])) + i; } - if (cl->flood_when[i] && - (level.time - cl->flood_when[i] < flood_persecond->value)) + if (cl->flood_when[i] && (level.time - cl->flood_when[i] < flood_persecond->value)) { cl->flood_locktill = level.time + flood_waitdelay->value; - gi.cprintf(ent, PRINT_CHAT, - "Flood protection: You can't talk for %d seconds.\n", + gi.cprintf(ent, PRINT_CHAT, "Flood protection: You can't talk for %d seconds.\n", (int)flood_waitdelay->value); return; } - cl->flood_whenhead = (cl->flood_whenhead + 1) % - (sizeof(cl->flood_when) / sizeof(cl->flood_when[0])); + cl->flood_whenhead = (cl->flood_whenhead + 1) % (sizeof(cl->flood_when) / sizeof(cl->flood_when[0])); cl->flood_when[cl->flood_whenhead] = level.time; }