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 1
Next bug: Cleanups in bot code 1

Bugfix 069 - Cleanups in both side code 1

Problem:

The code is full of compiler warnings. Also there are some typos, which could be cleaned up.

Solution:

Use these changes.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

bg_animation.c @ 488 BG_CopyStringIntoBuffer ===============
CHRUKER: b069 - Cleaned up a few compiler warnings
*/ char *BG_CopyStringIntoBuffer( char *string, char *buffer, unsigned int bufSize, unsigned int *offset ) { char *pch;
bg_misc.c @ 5014 (2.56) @ 5016 (2.60) // strip colors and control codes, copying up to dwMaxLength-1 "good" chars and nul-terminating // returns the length of the cleaned string
// CHRUKER: b069 - Cleaned up a few compiler warnings
int BG_cleanName( const char *pszIn, char *pszOut, unsigned int dwMaxLength, qboolean fCRLF ) { const char *pInCopy = pszIn;
bg_pmove.c @ 3502 (2.56) @ 3619 (2.60) if( pm->ps->weapon == WP_MORTAR_SET ) { if( pm->skill[SK_HEAVY_WEAPONS] >= 1 ) {
// CHRUKER: b069 - Was using "0.5f*(1-0.3f)", however the 0.33f is used everywhere else, and is more precise
if( pm->cmd.serverTime - pm->ps->classWeaponTime < (pm->soldierChargeTime*0.33f) ) { return; }
bg_public.h @ 2241 (2.56) @ 2243 (2.60) int BG_drawStrlen(const char *str); int BG_strRelPos(char *in, int index); int BG_cleanName(const char *pszIn, char *pszOut, unsigned int dwMaxLength, qboolean fCRLF); // CHRUKER: b069 - Cleaned up a few compiler warnings // Crosshair support

Show index
Previous bug: Cleanups in serverside code 1
Next bug: Cleanups in bot code 1

Color coding

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

©2017 Chruker