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: XP points are sometimes displayed with many decimals
Next bug: No skill or XP displayed in the playerstat dropdown until a weapon has been fired

Bugfix 014 - Changed some ints to floats where they were being misused

Problem:

I actually haven't noticed any problems with constructible_chargebarreq, however it seems wrong to use an integer when it is a float.

Solution:

Simply change the format to use %f instead of %i.

Notes:

The bug was fixed in version 2.60

2.56 Code

g_mover.c @ 5135 ent->constructibleStats = g_constructible_classes[i];
// CHRUKER: b014 - This was using integers when it should use floats
G_SpawnFloat( "constructible_chargebarreq", va( "%f", ent->constructibleStats.chargebarreq ), &ent->constructibleStats.chargebarreq ); G_SpawnFloat( "constructible_constructxpbonus", va( "%f", ent->constructibleStats.constructxpbonus ), &ent->constructibleStats.constructxpbonus ); G_SpawnFloat( "constructible_destructxpbonus", va( "%f", ent->constructibleStats.destructxpbonus ), &ent->constructibleStats.destructxpbonus );

Show index
Previous bug: XP points are sometimes displayed with many decimals
Next bug: No skill or XP displayed in the playerstat dropdown until a weapon has been fired

Color coding

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

©2017 Chruker