Skip to content

Commit

Permalink
LemonUtil: Add IsGameType
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon-King committed Jun 9, 2024
1 parent d4c336a commit b434535
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/assets/zscript/lib/lemonutil.zs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ class LemonUtil {
}
}

static bool IsGameType(int type) {
return gameinfo.gametype & type;
}

static int GetOptionGameMode() {
int cvarGameMode = LemonUtil.CVAR_GetInt("hxdd_gamemode", 0);
int gameType = gameinfo.gametype;
Expand Down

0 comments on commit b434535

Please sign in to comment.