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: Improving script error messages
Next bug: Compass icons were offset when zooming in or out

Bugfix 084 - Serverlist wraps

Problem:

When more than 2048 servers are added to the server browser, its list will wrap and start overwriting the first entries. As a result only the second portion of servers are shown.

Solution:

Increasing the number of servers in the display list to 4096. The same number that the global server list can contain.

Notes:

I'm not sure if this is correct. If the global list grows in the future this will likely need to be updated as well.

2.60 Code

ui_local.h @ 651 #define MAX_STATUSLENGTH 64 #define MAX_LISTBOXWIDTH 59 #define UI_FONT_THRESHOLD 0.1 #define MAX_DISPLAY_SERVERS 4096 // CHRUKER: Bugfix 084 - Server list was wrapping #define MAX_SERVERSTATUS_LINES 128 #define MAX_SERVERSTATUS_TEXT 2048 #define MAX_FOUNDPLAYER_SERVERS 16

Show index
Previous bug: Improving script error messages
Next bug: Compass icons were offset when zooming in or out

Color coding

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

©2017 Chruker