]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
changed DP_SMALLMEMORY compiles to use the standard NET_MAXMESSAGE value
[xonotic/darkplaces.git] / host_cmd.c
index 635882da9a053ba1339fa79de81999355e01ce30..e04f1a258fe21c614d1175edb176ebca21932cd8 100644 (file)
@@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "sv_demo.h"
 #include "image.h"
 
+#include "utf8lib.h"
+
 // for secure rcon authentication
 #include "hmac.h"
 #include "mdfour.h"
@@ -829,6 +831,9 @@ void Host_Loadgame_f (void)
                }
        }
 
+       // unlink all entities
+       World_UnlinkAll(&sv.world);
+
 // load the edicts out of the savegame file
        end = t;
        for (;;)
@@ -1027,7 +1032,7 @@ void Host_Name_f (void)
                host_client->name[1] = '0' + STRING_COLOR_DEFAULT;
        }
 
-       COM_StringLengthNoColors(host_client->name, 0, &valid_colors);
+       u8_COM_StringLengthNoColors(host_client->name, 0, &valid_colors);
        if(!valid_colors) // NOTE: this also proves the string is not empty, as "" is a valid colored string
        {
                size_t l;
@@ -2764,7 +2769,7 @@ void Host_Pings_f (void)
 
 void Host_PingPLReport_f(void)
 {
-       char **errbyte;
+       char *errbyte;
        int i;
        int l = Cmd_Argc();
        if (l > cl.maxclients)