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: Custom 5 minute warning is the same as 2 minute warning
Next bug: Playing time shown at debriefing keep increasing

Bugfix 093 - Lag-o-meter ping not correct during demo playback

Problem:

The game engine is not providing the correct pings during demo playback.

Solution:

Guess the ping based on times we know at demo playback.

References:

Thread with ETPro's implementation

Notes:

This solution is not the correct way to fix it. However guess the ping seems to be the only way.

2.60 Code

cg_draw.c @ 820 return; }
// CHRUKER: b093 - Lagometer ping not correct during demo playback if (cg.demoPlayback) { snap->ping = (snap->serverTime - snap->ps.commandTime) - 50; } // b093
// add this snapshot's info lagometer.snapshotSamples[ lagometer.snapshotCount & ( LAG_SAMPLES - 1) ] = snap->ping;

Show index
Previous bug: Custom 5 minute warning is the same as 2 minute warning
Next bug: Playing time shown at debriefing keep increasing

Color coding

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

©2017 Chruker