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: Campaign window not big enough to contain big campaigns
Next bug: Kick command is not able to kick some players by name

Bugfix 096 - Complaint votes sticks around, so vote no if we have complaints turned off

Problem:

When a client has the complaint popup turned off, the actual vote is still active at the server.

Solution:

Send a 'vote no' command to the server, when complaint popups are disabled.

2.60 Code

cg_servercmds.c @ 2143 // DHM - Nerve :: Allow client to lodge a complaing if ( !Q_stricmp( cmd, "complaint" ) && cgs.gamestate == GS_PLAYING) {
// CHRUKER: b096 - Complaint votes sticks around, so vote no if we have complaints turned off if (cg_complaintPopUp.integer == 0) { trap_SendClientCommand("vote no"); } // b096
cgs.complaintEndTime = cg.time + 20000; cgs.complaintClient = atoi( CG_Argv(1) );

Show index
Previous bug: Campaign window not big enough to contain big campaigns
Next bug: Kick command is not able to kick some players by name

Color coding

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

©2017 Chruker