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: Various typos in the scripting system
Next bug: When the axis flag times out after being dropped, both the game code and script will display it

Bugfix 057 - Skull never leaving in menu after teamswitch

Problem:

The number of lives was decreased regardless if it was a life limited game.

Solution:

Only decrease lives until we reach 0.

References:

Spawning thread and original fix

Notes:

The bug was fixed in version 2.60

2.56 Code

g_client.c @ 1672 // DHM - Nerve :: Also save PERS_SPAWN_COUNT, so that CG_Respawn happens spawn_count = client->ps.persistant[PERS_SPAWN_COUNT];
lives_left = client->ps.persistant[PERS_RESPAWNS_LEFT] - 1;
// CHRUKER: b057 - Fixed skull appearing after swithing teams in games with unlimited lifes if (client->ps.persistant[PERS_RESPAWNS_LEFT] > 0) client->ps.persistant[PERS_RESPAWNS_LEFT] -= 1; lives_left = client->ps.persistant[PERS_RESPAWNS_LEFT];
flags = client->ps.eFlags; memset( &client->ps, 0, sizeof( client->ps ) );

Show index
Previous bug: Various typos in the scripting system
Next bug: When the axis flag times out after being dropped, both the game code and script will display it

Color coding

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

©2017 Chruker