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: Lag-o-meter ping not correct during demo playback
Next bug: Campaign window not big enough to contain big campaigns

Bugfix 094 - Playing time shown at debriefing keep increasing

Problem:

Time played keeps increasing during intermission because level.time keeps increasing, and the intermission start time isn't include in the algorithm.

Solution:

Subtract the time in intermission from the time played.

2.60 Code

g_cmds.c @ 75 } if( g_gametype.integer == GT_WOLF_LMS ) {
// CHRUKER: b094 - Playing time shown at debriefing keep increasing
Com_sprintf (entry, sizeof(entry), " %i %i %i %i %i %i %i", level.sortedClients[i], cl->ps.persistant[PERS_SCORE], ping, (level.time - cl->pers.enterTime - (level.time - level.intermissiontime)) / 60000, g_entities[level.sortedClients[i]].s.powerups, playerClass, respawnsLeft ); } else { int j, totalXP; for( totalXP = 0, j = 0; j < SK_NUM_SKILLS; j++ ) { totalXP += cl->sess.skillpoints[j]; }
// CHRUKER: b094 - Playing time shown at debriefing keep increasing
Com_sprintf (entry, sizeof(entry), " %i %i %i %i %i %i %i", level.sortedClients[i], totalXP, ping, (level.time - cl->pers.enterTime - (level.time - level.intermissiontime)) / 60000, g_entities[level.sortedClients[i]].s.powerups, playerClass, respawnsLeft ); } // Make sure the entry can fit in the buffer. If not break away and send the buffer content

Show index
Previous bug: Lag-o-meter ping not correct during demo playback
Next bug: Campaign window not big enough to contain big campaigns

Color coding

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

©2017 Chruker