![]() |
|
|
Mapping Mapping sizes Limits Entities Bugs & Work-a-rounds Notes Scripting reference Mapping - Tutorials Brushwork from blueprint Tools Brush generator Vehicle generator MD3 Tag The Dummy Modding Project: Bug Fix Project: Crockett Other stuff Forum Server Info Colors Voice Chats Scripts Links |
Project: Bug FixThe objectiveThe 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 increasingProblem: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 codingSample = New codeSample = Changed code (the new version is what is displayed) Sample = Deleted code |
| ©2013 Chruker | |