![]() |
|
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: Compact scoreboard - Medals not showing up Next bug: Compact scoreboard - Normal background is used when names are compact Bugfix 034 - Compact scoreboard - Spectators written with wrong char sizeProblem:When the scorebaord is compact spectators are still written with wrong char size.Solution:Change the code to display the text using minichars.Notes:The bug is still present in version 2.602.56 & 2.60 Code
cg_scoreboard.c @ 428 (2.56) @ 461 (2.60)
w = CG_DrawStrlen( s ) * MINICHAR_WIDTH;
// CHRUKER: b034 - Using the mini char height
CG_DrawStringExt( tempx + totalwidth - w, y, s, hcolor, qfalse, qfalse, MINICHAR_WIDTH, MINICHAR_HEIGHT, 0 );
CG_DrawSmallString( tempx + totalwidth - w, y, s, fade );
return;
}
cg_scoreboard.c @ 672 (2.60)
for ( i = 0; i < cg.numScores; i++ ) {
if ( cgs.clientinfo[ cg.scores[i].client ].team != TEAM_SPECTATOR )
continue;
if ( team == TEAM_AXIS && ( i % 2 ) )
continue;
if ( team == TEAM_ALLIES && ( ( i + 1 ) % 2 ) )
continue;
// CHRUKER: b034 - Missing support for minichars
if( cg.teamPlayers[team] > maxrows ) {
WM_DrawClientScore_Small( x, y, &cg.scores[i], hcolor, fade );
y += MINICHAR_HEIGHT;
} else {
WM_DrawClientScore( x, y, &cg.scores[i], hcolor, fade );
y += SMALLCHAR_HEIGHT;
}
}
return y;
}
Show index Previous bug: Compact scoreboard - Medals not showing up Next bug: Compact scoreboard - Normal background is used when names are compact Color codingSample = New codeSample = Changed code (the new version is what is displayed) Sample = Deleted code |
©2018 Chruker |