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: Fireteam Delta's icon doesn't show up
Next bug: Medals clipped wrong in scoreboard when you're dead

Bugfix 031 - Show connecting people as connecting in the scoreboard and not as spectators

Problem:

Players which are connecting are shown as spectators, instead of connecting like in the /players list.

Solution:

The server already set the connecting players to have a ping of -1. So the fix is to just check the ping for this value.

Notes:

The bug is still present in version 2.60
The engine also has a bug which causes players to loose their connecting status after warmup has ended. This leeds to the connecting players getting a 999 ping.

2.56 & 2.60 Code

cg_scoreboard.c @ 291 totalwidth = INFO_CLASS_WIDTH + INFO_SCORE_WIDTH + INFO_LATENCY_WIDTH - 8;
// CHRUKER: b031 - Show connecting people as connecting if (score->ping == -1) { s = CG_TranslateString( "^3CONNECTING" ); } else {
s = CG_TranslateString( "^3SPECTATOR" );
}
w = CG_DrawStrlen( s ) * SMALLCHAR_WIDTH;
cg_scoreboard.c @ 425 (2.56) @ 430 (2.60) totalwidth = INFO_CLASS_WIDTH + INFO_SCORE_WIDTH + INFO_LATENCY_WIDTH - 8;
// CHRUKER: b031 - Show connecting people as connecting if (score->ping == -1) { s = CG_TranslateString( "^3CONNECTING" ); } else {
s = CG_TranslateString( "^3SPECTATOR" );
}
w = CG_DrawStrlen( s ) * MINICHAR_WIDTH;

Show index
Previous bug: Fireteam Delta's icon doesn't show up
Next bug: Medals clipped wrong in scoreboard when you're dead

Color coding

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

©2017 Chruker