Enemy Territory

Project: Bug Fix

The objective

The goal of this project is to provide modders in the ET community with a SDK code base that contains fixes for various bugs which are present in the stock etmain game (version 2.60).

26th september 2006: Sadly bugfix 088 had a bug :-( There were 3 lines that should have been deleted for the fix to work correctly.

Show index
Previous bug: Spawnpoints not movable
Next bug: Lag-o-meter ping not correct during demo playback

Bugfix 092 - Custom 5 minute warning is the same as 2 minute warning

Problem:

On maps that specify a different set of time limit warnings. The five minute warning was the same as the two minute warning due to a copy-paste error in the source code.

Solution:

Fix the key names for the 5 minute warning sounds.

2.60 Code

cg_spawn.c @ 387 cg.thirtySecondSound_g[0] = \ cg.thirtySecondSound_a[0] = '\0';
// CHRUKER: b092 - Custom 5 minute warning is the same as 2 minute warning
CG_SpawnString( "fiveMinuteSound_axis", "axis_hq_5minutes", &s ); Q_strncpyz( cg.fiveMinuteSound_g, s, sizeof(cg.fiveMinuteSound_g) ); CG_SpawnString( "fiveMinuteSound_allied", "allies_hq_5minutes", &s ); Q_strncpyz( cg.fiveMinuteSound_a, s, sizeof(cg.fiveMinuteSound_a) );
// b092
CG_SpawnString( "twoMinuteSound_axis", "axis_hq_2minutes", &s ); Q_strncpyz( cg.twoMinuteSound_g, s, sizeof(cg.twoMinuteSound_g) );

Show index
Previous bug: Spawnpoints not movable
Next bug: Lag-o-meter ping not correct during demo playback

Color coding

Sample = New code
Sample = Changed code (the new version is what is displayed)
Sample = Deleted code

©2017 Chruker