Skip to content

Commit

Permalink
Show author name for one-humanity.wad in mapstats
Browse files Browse the repository at this point in the history
https://romero.com/shop/p/onehumanity

"One Humanity is a new level for the 1994 id Software release DOOM® II created by John Romero to support the people of Ukraine and the humanitarian efforts of the Red Cross and the UN Central Emergency Response Fund. 100% of the proceeds go toward this support.

One Humanity is Romero’s first DOOM II level since the release of the original in 1994. The .WAD contains a readme text file as well as the external mod data. Players must have an original copy of DOOM II and a modern source port to play One Humanity."
  • Loading branch information
bradharding committed Mar 3, 2022
1 parent bb52be3 commit 9529206
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/c_autocomplete.c
Original file line number Diff line number Diff line change
Expand Up @@ -7664,6 +7664,7 @@ autocomplete_t autocompletelist[] =
{ "map nukageprocessing", DOOM2ONLY },
{ "map odysseyofnoises", DOOM2ONLY },
{ "map omen", DOOM2ONLY },
{ "map onehumanity", DOOM2ONLY },
{ "map onslaught", DOOM2ONLY },
{ "map oofdestruction", DOOM2ONLY },
{ "map openseason", DOOM2ONLY },
Expand Down
2 changes: 2 additions & 0 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,8 @@ static void D_CheckSupportedPWAD(char *filename)
E1M4B = true;
else if (M_StringCompare(leaf, "e1m8b.wad"))
E1M8B = true;
else if (M_StringCompare(leaf, "one-humanity.wad"))
onehumanity = true;
else if (M_StringCompare(leaf, "d1spfx18.wad")
|| M_StringCompare(leaf, "d2spfx18.wad"))
sprfix18 = true;
Expand Down
1 change: 1 addition & 0 deletions src/doomstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dboolean BTSXE3A;
dboolean BTSXE3B;
dboolean E1M4B;
dboolean E1M8B;
dboolean onehumanity;
dboolean sprfix18;
dboolean eviternity;
dboolean doom4vanilla;
Expand Down
1 change: 1 addition & 0 deletions src/doomstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ extern dboolean BTSXE3A;
extern dboolean BTSXE3B;
extern dboolean E1M4B;
extern dboolean E1M8B;
extern dboolean onehumanity;
extern dboolean sprfix18;
extern dboolean eviternity;
extern dboolean doom4vanilla;
Expand Down
4 changes: 2 additions & 2 deletions src/p_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -3551,8 +3551,8 @@ static void P_ParseMapInfo(char *scriptname)

char *P_GetMapAuthor(int map)
{
return (MAPINFO >= 0 && mapinfo[map].author[0] ? mapinfo[map].author :
(((E1M4B || *speciallumpname) && map == 4) || ((E1M8B || *speciallumpname) && map == 8) ? s_AUTHOR_ROMERO : ""));
return (MAPINFO >= 0 && mapinfo[map].author[0] ? mapinfo[map].author : (((E1M4B || *speciallumpname) && map == 4)
|| ((E1M8B || *speciallumpname) && map == 8) || (onehumanity && map == 1) ? s_AUTHOR_ROMERO : ""));
}

char *P_GetInterBackrop(int map)
Expand Down

0 comments on commit 9529206

Please sign in to comment.