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: Akimbo weapons didn't use the spread reduction you get at level 3 light weapons
Next bug: Output from various referee commands had typos

Bugfix 046 - Output from various commands are cluttering the popupmessages

Problem:

Output from some referee commands were cluttering the popupmessages.

Solution:

This moves them to the console.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_cmds_ext.c @ 160 (2.56) @ 161 (2.60) if(rows < 0) return;
// CHRUKER: b046 - Was using the cpm command, but this is really just for the console.
CP("print \"^5\nAvailable OSP Game-Commands:\n----------------------------\n\""); for(i=0; i<rows; i++) { if(i+rows*3+1 <= num_cmds) { CP(va("print \"^3%-17s%-17s%-17s%-17s\n\"", aCommandInfo[i].pszCommandName, aCommandInfo[i+rows].pszCommandName, aCommandInfo[i+rows*2].pszCommandName, aCommandInfo[i+rows*3].pszCommandName)); } else if(i+rows*2+1 <= num_cmds) { CP(va("print \"^3%-17s%-17s%-17s\n\"", aCommandInfo[i].pszCommandName, aCommandInfo[i+rows].pszCommandName, aCommandInfo[i+rows*2].pszCommandName)); } else if(i+rows+1 <= num_cmds) { CP(va("print \"^3%-17s%-17s\n\"", aCommandInfo[i].pszCommandName, aCommandInfo[i+rows].pszCommandName)); } else { CP(va("print \"^3%-17s\n\"", aCommandInfo[i].pszCommandName)); } }
// CHRUKER: b046 - Was using the cpm command, but this is really just for the console.
CP("print \"\nType: ^3\\command_name ?^7 for more information\n\""); }
g_referee.c @ 106 (2.56) @ 110 (2.60) if(ent) { if(!Q_stricmp(refereePassword.string, "none") || !refereePassword.string[0]) {
// CHRUKER: b046 - Was using the cpm command, but this is really just for the console.
CP("print \"Sorry, referee status disabled on this server.\n\""); return; } if(trap_Argc() < 2) {
// CHRUKER: b046 - Was using the cpm command, but this is really just for the console.
CP("print \"Usage: ref [password]\n\""); return; } trap_Argv(1, arg, sizeof(arg)); if(Q_stricmp(arg, refereePassword.string)) {
// CHRUKER: b046 - Was using the cpm command, but this is really just for the console.
CP("print \"Invalid referee password!\n\""); return; }
g_referee.c @ 569 (2.56) @ 580 (2.60) va_end (argptr); if(ent == NULL) trap_Printf(text); else CP(va("print \"%s\n\"", text)); // CHRUKER: b046 - Was using the cpm command, but this is really just for the console }

Show index
Previous bug: Akimbo weapons didn't use the spread reduction you get at level 3 light weapons
Next bug: Output from various referee commands had typos

Color coding

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

©2017 Chruker