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: Medic, death and objective icons on the scoreboard are drawn too big
Next bug: Breakable damage indicator can wrap when the entity has a lot of health

Bugfix 079 - Background images on the loading screen are not always shown

Problem:

The problem was that the color remained undefined after the client game had been initialized. And trap_R_DrawStretchPic seems to need a color definition.

Solution:

Reset colors when initializing the media.

Notes:

This bug may also be present in ui_loadpanel.c :: UI_DrawLoadPanel(). However I haven't been able to spot the symptoms of a bug there.

2.56 & 2.60 Code

cg_main.c @ 2663 cgs.ccCurrentCamObjective = -2;
// CHRUKER: b079 - Background images on the loading screen were not visible on the first call trap_R_SetColor( NULL );
// load a few needed things before we do any screen updates cgs.media.charsetShader = trap_R_RegisterShader( "gfx/2d/hudchars" ); //trap_R_RegisterShader( "gfx/2d/bigchars" );

Show index
Previous bug: Medic, death and objective icons on the scoreboard are drawn too big
Next bug: Breakable damage indicator can wrap when the entity has a lot of health

Color coding

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

©2017 Chruker