]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.h
physics: fix and refactor unsticking
[xonotic/darkplaces.git] / netconn.h
index d39843df0ab3b01da3f6057e3293729535704ab6..a7ef91d22d59999492f7490d8004dd0c75b90db7 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -274,20 +274,27 @@ typedef struct serverlist_info_s
 {
        /// address for connecting
        char cname[128];
+       unsigned cname_len;
        /// ping time for sorting servers, in milliseconds, 0 means no data
        unsigned ping;
        /// name of the game
        char game[32];
+       unsigned game_len;
        /// name of the mod
        char mod[32];
+       unsigned mod_len;
        /// name of the map
        char map[32];
+       unsigned map_len;
        /// name of the session
        char name[128];
+       unsigned name_len;
        /// qc-defined short status string
        char qcstatus[128];
+       unsigned qcstatus_len;
        /// frags/ping/name list (if they fit in the packet)
        char players[2800];
+       unsigned players_len;
        /// max client number
        int maxplayers;
        /// number of currently connected players (including bots)
@@ -343,8 +350,6 @@ typedef struct serverlist_entry_s
 {
        /// used to track when a server should be considered timed out and removed from the final view
        qbool responded;
-       /// used to count the number of times the host has tried to query this server already
-       unsigned querycounter;
        /// used to calculate ping in PROTOCOL_QUAKEWORLD, and for net_slist_maxtries interval, and for timeouts
        double querytime;
        /// query protocol to use on this server, may be PROTOCOL_QUAKEWORLD or PROTOCOL_DARKPLACES7
@@ -354,7 +359,9 @@ typedef struct serverlist_entry_s
 
        // legacy stuff
        char line1[128];
+       unsigned line1_len;
        char line2[128];
+       unsigned line2_len;
 } serverlist_entry_t;
 
 typedef struct serverlist_mask_s