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: VoiceChat spam protection messages was cluttering the popup messages
Next bug: Cleanups in serverside code 1

Bugfix 067 - 'callvote' command erros could be delayed

Problem:

Callvote command error can sometimes be delayed since they are displayed as popup messages.

Solution:

Moved 'callvote' command erros from popup messages to center print and console.

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_cmds.c @ 1840 (2.56) @ 1850 (2.60) // Normal checks, if its not being issued as a referee command
// CHRUKER: b067 - Was using the cpm command, but these needs to be displayed immediately.
if( !fRefCommand ) { if( level.voteInfo.voteTime ) {
G_printFull("A vote is already in progress.", ent);
CP("cpm \"A vote is already in progress.\n\"");
return qfalse; } else if( level.intermissiontime ) {
G_printFull("Cannot callvote during intermission.", ent);
CP("cpm \"Cannot callvote during intermission.\n\"");
return qfalse; } else if( !ent->client->sess.referee ) { if( voteFlags.integer == VOTING_DISABLED ) {
G_printFull("Voting not enabled on this server.", ent);
CP("cpm \"Voting not enabled on this server.\n\"");
return qfalse; } else if( vote_limit.integer > 0 && ent->client->pers.voteCount >= vote_limit.integer ) {
G_printFull(va("You have already called the maximum number of votes (%d).", vote_limit.integer), ent);
CP(va("cpm \"You have already called the maximum number of votes (%d).\n\"", vote_limit.integer));
return qfalse; } else if( ent->client->sess.sessionTeam == TEAM_SPECTATOR) {
G_printFull("Not allowed to call a vote as a spectator.", ent);
CP("cpm \"Not allowed to call a vote as a spectator.\n\"");
return qfalse; } } } // b067 // make sure it is a valid command to vote on

Show index
Previous bug: VoiceChat spam protection messages was cluttering the popup messages
Next bug: Cleanups in serverside code 1

Color coding

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

©2017 Chruker