new commands: modconnect, modconnectadmin & modlanconnect

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4391 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-16 17:18:17 +00:00
parent d2fe4fa70e
commit 0650dd3a64
8 changed files with 56 additions and 16 deletions
+7 -1
View File
@@ -890,7 +890,13 @@ char *getfiledesc(const char *dir, const char *name, const char *ext)
gzclose(f);
endianswap(&hdr.version, sizeof(int), 1);
endianswap(&hdr.protocol, sizeof(int), 1);
s_sprintf(text)("%s%s", (hdr.version!=DEMO_VERSION || hdr.protocol!=PROTOCOL_VERSION) ? "(incompatible file) " : "", hdr.desc);
const char *tag = "(incompatible file) ";
if(hdr.version == DEMO_VERSION)
{
if(hdr.protocol == PROTOCOL_VERSION) tag = "";
else if(hdr.protocol == -PROTOCOL_VERSION) tag = "(recorded on modded server) ";
}
s_sprintf(text)("%s%s", tag, hdr.desc);
text[DHDR_DESCCHARS - 1] = '\0';
return newstring(text);
}