add basic functions for game mode bitmasks

This commit is contained in:
ac-stef
2017-06-27 15:15:22 +02:00
parent b82a38b2e2
commit 7dc72aebb1
4 changed files with 37 additions and 1 deletions
+5 -1
View File
@@ -2084,7 +2084,11 @@ void startgame(const char *newname, int newmode, int newtime, bool notify)
if(localmap)
{
localmap->load();
if(localmap->isok) sm = localmap;
if(localmap->isok)
{
sm = localmap;
if(!(sm->entstats.modes_possible & 1 << sg->smode)) conoutf("\f3map %s does not support game mode %s", sm->fname, fullmodestr(sg->smode));
}
else conoutf("\f3local server failed to load map \"%s%s\", error: %s", lpath, sg->smapname, localmap->err);
}
}