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: Respawn timer is shown while spectating
Next bug: Getting level 4 light weapons or heavy weapons during a map make people spawn as soldier with a SMG

Bugfix 019 - Player booted to spec if they have level 4 light weapon or heavy weapon skills at map start

Problem:

The first time CG_NewClientInfo is called after a map start, the team information in cgs.clientinfo[x].team isn't valid.

Solution:

Make sure that cgs.clientinfo[x].team contains a valid team number.

References:

Spawning thread

Notes:

The bug was fixed in version 2.60 by not forcing people into spectator in CG_LimboPanel_SendSetupMsg if team isn't set. The 2.60 fix seems more correct.

2.56 Code

cg_players.c @ 238 // Gordon: detect rank/skill changes client side
// CHRUKER: b019 - Make sure we have some valid clientinfo, otherwise people are thrown into spectator on map starts
if( clientNum == cg.clientNum && cgs.clientinfo[ cg.clientNum ].team > 0 ) { int i;

Show index
Previous bug: Respawn timer is shown while spectating
Next bug: Getting level 4 light weapons or heavy weapons during a map make people spawn as soldier with a SMG

Color coding

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

©2017 Chruker