Skip to content

Commit bc33597

Browse files
committed
fix: odd tick voidclip pause
1 parent c6bf061 commit bc33597

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Features/Session.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ void Session::Changed(int state) {
255255
if (state == SIGNONSTATE_NEW) {
256256
engine->ExecuteCommand("showconsole");
257257
} else if (state == SIGNONSTATE_SPAWN) {
258-
engine->ExecuteCommand("showconsole; hwait 6 seq toggleconsole toggleconsole");
258+
int host, server, client;
259+
engine->GetTicks(host, server, client);
260+
if ((server % 2) == 1) {
261+
engine->ExecuteCommand("showconsole; hwait 6 seq nop toggleconsole nop nop toggleconsole");
262+
} else {
263+
engine->ExecuteCommand("showconsole; hwait 6 seq toggleconsole toggleconsole");
264+
}
259265
g_autovoidclip = 0;
260266
}
261267
}

0 commit comments

Comments
 (0)