From e7e0acdae43028eb6982aa628f0c674b7e2ebc12 Mon Sep 17 00:00:00 2001 From: insellium Date: Thu, 18 Jan 2024 13:25:08 +0500 Subject: [PATCH] Little code update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — Changed cg_gravity to 1400 (for realistic car movement) — Expanded checkpoint limit from 40 to 100 --- engine/code/cgame/cg_rally_tools.c | 6 +++--- engine/code/game/g_cmds.c | 2 +- engine/code/game/g_main.c | 2 +- engine/code/game/g_spawn.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/code/cgame/cg_rally_tools.c b/engine/code/cgame/cg_rally_tools.c index 9a6daa26..bada493a 100644 --- a/engine/code/cgame/cg_rally_tools.c +++ b/engine/code/cgame/cg_rally_tools.c @@ -27,13 +27,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA void CG_DrawCheckpointLinks(void) { int i, j; - centity_t *cents[40]; + centity_t *cents[100]; qboolean checkpointFound; int numCheckpoints = 0; vec3_t handle; - // FIXME: max of 40 checkpoints - for (i = 0; i < 40; i++) + // Checkpoint limit + for (i = 0; i < 100; i++) { checkpointFound = qfalse; for (j = 0; j < MAX_GENTITIES; j++) diff --git a/engine/code/game/g_cmds.c b/engine/code/game/g_cmds.c index ab42d6d9..9b4ba1d7 100644 --- a/engine/code/game/g_cmds.c +++ b/engine/code/game/g_cmds.c @@ -1964,7 +1964,7 @@ void Cmd_SaveBPoints_f( gentity_t *other ) Com_Printf( "Writing out bezier path information to: '%s'\n", buffer ); trap_FS_FOpenFile( buffer, &f, FS_WRITE ); - for (i = 1; i < 40; i++) + for (i = 1; i < 100; i++) { ent = NULL; while ((ent = G_Find (ent, FOFS(classname), "rally_checkpoint")) != NULL) { diff --git a/engine/code/game/g_main.c b/engine/code/game/g_main.c index 1a52f691..86361b05 100644 --- a/engine/code/game/g_main.c +++ b/engine/code/game/g_main.c @@ -181,7 +181,7 @@ static cvarTable_t gameCvarTable[] = { { &g_speed, "g_speed", "320", 0, 0, qtrue }, // STONELANCE // { &g_gravity, "g_gravity", "800", 0, 0, qtrue }, - { &g_gravity, "g_gravity", "1100", 0, 0, qtrue }, + { &g_gravity, "g_gravity", "1400", 0, 0, qtrue }, // END { &g_knockback, "g_knockback", "1000", 0, 0, qtrue }, { &g_quadfactor, "g_quadfactor", "3", 0, 0, qtrue }, diff --git a/engine/code/game/g_spawn.c b/engine/code/game/g_spawn.c index 4c71cddf..560e8d72 100644 --- a/engine/code/game/g_spawn.c +++ b/engine/code/game/g_spawn.c @@ -701,7 +701,7 @@ void SP_worldspawn( void ) { // STONELANCE // G_SpawnString( "gravity", "800", &s ); - G_SpawnString( "gravity", "1100", &s ); + G_SpawnString( "gravity", "1400", &s ); // END trap_Cvar_Set( "g_gravity", s );