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: Cleanups in bot code 1
Next bug: Objective carrier icon caused class, xp, ping, lives text to be offset

Bugfix 071 - Objective carrier icon missing on compact scoreboard

Problem:

When the scoreboard function WM_DrawClientScore_Small was drawing a player with the small size, the objective display code is using an outdated shadername.

Solution:

Using the media already loaded, just as WM_DrawClientScore when drawing a player with the normal size.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

cg_scoreboard.c @ 408 (2.60) if ( ci->team != TEAM_SPECTATOR ) { if ( ci->powerups & ( (1 << PW_REDFLAG) | (1 << PW_BLUEFLAG) ) ) {
// CHRUKER: b071 - Objective carrier icon missing on compact scoreboard CG_DrawPic( tempx + 1, y + 1, 10, 10, cgs.media.objectiveShader );
CG_DrawPic( tempx-2, y-4, 20, 20, trap_R_RegisterShader( "models/multiplayer/treasure/treasure" ) );
offset += 14; tempx += 14;

Show index
Previous bug: Cleanups in bot code 1
Next bug: Objective carrier icon caused class, xp, ping, lives text to be offset

Color coding

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

©2017 Chruker