Skip to content

Commit

Permalink
console checkpoint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
videoP committed Oct 20, 2018
1 parent 429e61f commit e8758c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion codemp/game/bg_slidemove.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ qboolean PM_SlideMove( qboolean gravity ) {

// don't change velocity if in a timer (FIXME: is this correct?)
if ( pm->ps->pm_time ) {
VectorCopy( primal_velocity, pm->ps->velocity );
VectorCopy( primal_velocity, pm->ps->velocity ); //corner clip , cornerclip , skim
}

return ( bumpcount != 0 );
Expand Down
4 changes: 2 additions & 2 deletions codemp/game/g_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2306,9 +2306,9 @@ qboolean ClientUserinfoChanged( int clientNum ) { //I think anything treated as
client->pers.showChatCP = qfalse;

if (atoi(s) & JAPRO_PLUGIN_CONSOLECP)
client->pers.showConsoleCP = qfalse;
else
client->pers.showConsoleCP = qtrue;
else
client->pers.showConsoleCP = qfalse;

if (atoi(s) & JAPRO_PLUGIN_NODMGNUMBERS)
client->pers.noDamageNumbers = qtrue;
Expand Down
2 changes: 1 addition & 1 deletion codemp/game/g_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ void TimerCheckpoint(gentity_t *trigger, gentity_t *player, trace_t *trace) {//J
if (player->client->pers.showCenterCP)
trap->SendServerCommand( player-g_entities, va("cp \"^3%.3fs^5, avg ^3%i^5u, max ^3%i^5u\n\n\n\n\n\n\n\n\n\n\"", (float)time * 0.001f, average, (int)(player->client->pers.stats.topSpeed + 0.5f)));
if (player->client->pers.showConsoleCP)
trap->SendServerCommand(player - g_entities, va("print \"^3%.3fs^5, avg ^3%i^5u, max ^3%i^5u\n\n\n\n\n\n\n\n\n\n\"", (float)time * 0.001f, average, (int)(player->client->pers.stats.topSpeed + 0.5f)));
trap->SendServerCommand(player - g_entities, va("print \"^5Checkpoint: ^3%.3f^5, avg ^3%i^5, max ^3%i^5 ups\n\"", (float)time * 0.001f, average, (int)(player->client->pers.stats.topSpeed + 0.5f)));
else if (player->client->pers.showChatCP)
trap->SendServerCommand( player-g_entities, va("chat \"^5Checkpoint: ^3%.3f^5, avg ^3%i^5, max ^3%i^5 ups\"", (float)time * 0.001f, average, (int)(player->client->pers.stats.topSpeed + 0.5f)));

Expand Down

0 comments on commit e8758c2

Please sign in to comment.