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: Pause and unpause from ref command or Referee menu doesn't broadcast a centerprint message
Next bug: 'Competition settings loaded' and 'Public settings loaded' notifications are quickly overwritten

Bugfix 041 - (Un)lock team/spectator from ref command or Referee menu doesn't broadcast anything at all

Problem:

Messages when a team is locked and unlocked, was only sent to the client issuing the commands.

Solution:

Change the ent parameter to NULL in the G_printFull command.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_referee.c @ 163 (2.56) @ 169 (2.60) status = va("Referee has ^3%sLOCKED^7 teams", ((fLock) ? "" : "UN"));
// CHRUKER: b041 - Was only sending this to ent, but it should be broadcasted
G_printFull(status, NULL); G_refPrintf(ent, "You have %sLOCKED teams\n", ((fLock) ? "" : "UN")); if( fLock ) {
g_referee.c @ 302 (2.56) @ 306 (2.60) status = va("Referee has ^3SPECTATOR %sLOCKED^7 teams", ((fLock) ? "" : "UN"));
// CHRUKER: b041 - Was only sending this to ent, but it should be broadcasted
G_printFull(status, NULL); // Update viewers as necessary

Show index
Previous bug: Pause and unpause from ref command or Referee menu doesn't broadcast a centerprint message
Next bug: 'Competition settings loaded' and 'Public settings loaded' notifications are quickly overwritten

Color coding

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

©2017 Chruker