serverbrowser can use acronymic modenames

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1896 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2008-05-09 17:51:55 +00:00
parent ec70a49dbd
commit 382250e8ca
3 changed files with 11 additions and 1 deletions
+7
View File
@@ -100,7 +100,14 @@ const char *modenames[] =
"one shot, one kill", "team one shot, one kill", "bot one shot, one skill"
};
const char *modeacronymnames[] =
{
"TDM", "coop", "DM", "SURV", "TSURV", "CTF", "PF", "BTDM", "BDM", "LSS",
"OSOK", "TOSOK", "BOSOK"
};
const char *modestr(int n) { return (n>=0 && (size_t)n < sizeof(modenames)/sizeof(modenames[0])) ? modenames[n] : "unknown"; }
const char *acronymmodestr(int n) { return (n>=0 && (size_t)n < sizeof(modeacronymnames)/sizeof(modeacronymnames[0])) ? modeacronymnames[n] : "unknown"; }
char msgsizesl[] = // size inclusive message token, 0 for variable or not-checked sizes
{