![]() |
|
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: Medals clipped wrong in scoreboard when you're dead Next bug: Compact scoreboard - Spectators written with wrong char size Bugfix 033 - Compact scoreboard - Medals not showing upProblem:The first of a couple of problems with the compact scoreboard. Problem was that the medals showing part is completely missing from the WM_DrawClientScore_Small code.Solution:More or less a copy-paste of the code for the normal scoreboard. With changes to use the minichars.Notes:The bug is still present in version 2.602.56 & 2.60 Code
cg_scoreboard.c @ 337 (2.56) @ 348 (2.60)
vec4_t hcolor;
clientInfo_t *ci;
// CHRUKER: b033 - Added to draw medals
int i, j;
char buf[64];
// CHRUKER: b0?? - Was using the wrong char height for this calculation
if ( y + MINICHAR_HEIGHT >= 470 )
return;
cg_scoreboard.c @ 389 (2.56) @ 402 (2.60)
hcolor[3] = fade;
// CHRUKER: b033 - Corrected to draw medals
maxchars = 16;
offset = 0;
cg_scoreboard.c @ 416 (2.56) @ 430 (2.60)
// draw name
CG_DrawStringExt( tempx, y, ci->name, hcolor, qfalse, qfalse, MINICHAR_WIDTH, MINICHAR_HEIGHT, maxchars );
// CHRUKER: b033 - Added to draw medals
maxchars -= CG_DrawStrlen( ci->name );
buf[0] = '\0';
for( i = 0; i < SK_NUM_SKILLS; i++ ) {
for( j = 0; j < ci->medals[i]; j++ )
Q_strcat( buf, sizeof(buf), va( "^%c%c", COLOR_RED + i, skillNames[i][0] ) );
}
maxchars--;
if (maxchars > 0) CG_DrawStringExt( tempx + (BG_drawStrlen(ci->name) * MINICHAR_WIDTH + MINICHAR_WIDTH), y, buf, hcolor, qfalse, qfalse, MINICHAR_WIDTH, MINICHAR_HEIGHT, maxchars );
// b033
tempx += INFO_PLAYER_WIDTH - offset;
// dhm - nerve
Show index Previous bug: Medals clipped wrong in scoreboard when you're dead Next bug: Compact scoreboard - Spectators written with wrong char size Color codingSample = New codeSample = Changed code (the new version is what is displayed) Sample = Deleted code |
©2018 Chruker |