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: Added <pid> to remove command in referee help text
Next bug: (Un)lock team/spectator from ref command or Referee menu doesn't broadcast anything at all

Bugfix 040 - Pause and unpause from ref command or Referee menu doesn't broadcast a centerprint message

Problem:

Center print messages when a match is paused and unpaused, was only sent to the client issuing the commands.

Solution:

Use the AP macro instead of the CP macro to send the message to all clients

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_cmds_ext.c @ 238 (2.56) @ 239 (2.60) G_spawnPrintf(DP_PAUSEINFO, level.time + 15000, NULL); AP(va("print \"^3Match is ^1PAUSED^3!\n^7[%s^7: - %d Timeouts Remaining]\n\"", aTeams[tteam], teamInfo[tteam].timeouts)); AP(va("cp \"^3Match is ^1PAUSED^3! (%s^3)\n\"", aTeams[tteam])); // CHRUKER: b040 - Was only sending this to the client sending the command level.server_settings |= CV_SVS_PAUSE; trap_SetConfigstring(CS_SERVERTOGGLES, va("%d", level.server_settings));
g_referee.c @ 194 (2.56) @ 200 (2.60) G_spawnPrintf(DP_PAUSEINFO, level.time + 15000, NULL); AP(va("print \"^3%s ^1PAUSED^3 the match^3!\n", referee)); AP(va("cp \"^3Match is ^1PAUSED^3! (^7%s^3)\n\"", referee)); // CHRUKER: b040 - Was only sending this to the client sending the command level.server_settings |= CV_SVS_PAUSE; trap_SetConfigstring(CS_SERVERTOGGLES, va("%d", level.server_settings));

Show index
Previous bug: Added <pid> to remove command in referee help text
Next bug: (Un)lock team/spectator from ref command or Referee menu doesn't broadcast anything at all

Color coding

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

©2017 Chruker