Skip to content

Commit

Permalink
game: min start speed improvements (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
suburbski authored and boutetnico committed Jun 13, 2018
1 parent 36e6d66 commit 4026ba2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cgame/cg_servercmds.c
Expand Up @@ -1621,6 +1621,11 @@ static void CG_ServerCommand(void) {
// Nico, timer start/stop/check related

if (!Q_stricmp(cmd, "timerun_start")) {
// suburb, kill if min start speed not reached
if (atoi(CG_Argv(3)) < cg_minStartSpeed.integer) {
trap_SendConsoleCommand("kill\n");
CG_CenterPrint(va("^1%i ^7/ ^2%i", atoi(CG_Argv(3)), cg_minStartSpeed.integer), 400, SMALLCHAR_WIDTH);
}
cg.timerunActive = 1;
cg.timerunCheckPointChecked = 0;
cg.currentTimerun = atoi(CG_Argv(1)); // Timerun num
Expand Down

0 comments on commit 4026ba2

Please sign in to comment.