Skip to content

Commit

Permalink
Indicate ID24 compatibility in mapstats CCMD
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 13, 2024
1 parent 5bed46a commit 05c84e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -5201,10 +5201,11 @@ static void mapstats_func2(char *cmd, char *parms)
}

C_TabbedOutput(tabs, "Compatibility\t%s",
(mbf21compatible ? ITALICS("MBF21") :
(mbfcompatible ? ITALICS("MBF") :
(boomcompatible ? ITALICS("BOOM") :
(numsegs < 32768 ? "Vanilla" : "Limit removing")))));
(id24compatible ? ITALICS("ID24") :
(mbf21compatible ? ITALICS("MBF21") :
(mbfcompatible ? ITALICS("MBF") :
(boomcompatible ? ITALICS("BOOM") :
(numsegs < 32768 ? "Vanilla" : "Limit removing"))))));

if (partime)
C_TabbedOutput(tabs, "Par time\t" MONOSPACED("%02i") ":" MONOSPACED("%02i"),
Expand Down
2 changes: 2 additions & 0 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,8 @@ static void D_DoomMainSetup(void)

W_CheckForPNGLumps();

id24compatible = (W_CheckNumForName("SBARDEF") >= 0 || W_CheckNumForName("SKYDEFS") >= 0);

FREEDM = (W_CheckNumForName("FREEDM") >= 0);

PLAYPALs = (FREEDOOM || chex || hacx || harmony || REKKRSA ? 2 : W_GetNumLumps("PLAYPAL"));
Expand Down
1 change: 1 addition & 0 deletions src/p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ const char *nodeformats[] =
};

bool boomcompatible;
bool id24compatible = false;
bool mbfcompatible;
bool mbf21compatible = false;
bool blockmaprebuilt;
Expand Down
1 change: 1 addition & 0 deletions src/r_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ extern nodeformat_t nodeformat;
extern const char *nodeformats[];

extern bool boomcompatible;
extern bool id24compatible;
extern bool mbfcompatible;
extern bool mbf21compatible;
extern bool blockmaprebuilt;
Expand Down

0 comments on commit 05c84e6

Please sign in to comment.