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 serverside code 2
Next bug: Scoreboard background draws double lines with higher resolutions

Bugfix 075 - Cleanups in clientside code 1

Problem:

There are a few compiler warnings in the client side code which could be cleaned up.

Solution:

Use these changes.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

cg_main.c @ 802 // See if its a number or string for(id=0; id<(int)strlen(s) && s[id] != 0; id++) { // CHRUKER: b075 - Added the (int) type casting if(s[id] < '0' || s[id] > '9') { fIsNumber = qfalse;
cg_main.c @ 955 cent->dl_atten = atoi(token); for(j=0;j<(int)strlen(cent->dl_stylestring);j++) { // CHRUKER: b075 - Added the (int) type casting cent->dl_stylestring[j] += cent->dl_atten; // adjust character for attenuation/amplification

Show index
Previous bug: Cleanups in serverside code 2
Next bug: Scoreboard background draws double lines with higher resolutions

Color coding

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

©2017 Chruker