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: Rifle grenade through door exploit
Next bug: Coverts can steal uniforms while wounded

Bugfix 005 - Referee commands doesn't work in server console

Problem:

Referee commands doesn't work in the server console.

Solution:

The referee command is expecting the next argument however the code never removed the ref part, it was given the entire commandline.

References:

Original fix

Notes:

The bug is still present in version 2.60

2.56 & 2.60 Code

g_svcmds.c @ 1038 (2.56) @ 1341 (2.60) // OSP - console also gets ref commands if(!level.fLocalHost && Q_stricmp(cmd, "ref") == 0) {
// CHRUKER: b005 - G_refCommandCheck expects the next argument (warn, pause, lock etc). trap_Argv(1, cmd, sizeof(cmd));
if(!G_refCommandCheck(NULL, cmd)) { G_refHelp_cmd(NULL); } return(qtrue); }

Show index
Previous bug: Rifle grenade through door exploit
Next bug: Coverts can steal uniforms while wounded

Color coding

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

©2017 Chruker