Combine credits for addons

This commit is contained in:
Denis Pauk 2023-11-04 21:50:28 +02:00
parent 172e8b743e
commit 1ab34c87fd

View file

@ -2653,11 +2653,12 @@ static const char *idcredits[] = {
"trademark of Activision, Inc. All", "trademark of Activision, Inc. All",
"other trademarks and trade names are", "other trademarks and trade names are",
"properties of their respective owners.", "properties of their respective owners.",
0 "",
}; "",
"",
static const char *xatcredits[] = "",
{ "",
"",
"+QUAKE II MISSION PACK: THE RECKONING", "+QUAKE II MISSION PACK: THE RECKONING",
"+BY", "+BY",
"+XATRIX ENTERTAINMENT, INC.", "+XATRIX ENTERTAINMENT, INC.",
@ -2794,11 +2795,12 @@ static const char *xatcredits[] =
"Inc. All other trademarks and trade", "Inc. All other trademarks and trade",
"names are properties of their", "names are properties of their",
"respective owners.", "respective owners.",
0 "",
}; "",
"",
static const char *roguecredits[] = "",
{ "",
"",
"+QUAKE II MISSION PACK 2: GROUND ZERO", "+QUAKE II MISSION PACK 2: GROUND ZERO",
"+BY", "+BY",
"+ROGUE ENTERTAINMENT, INC.", "+ROGUE ENTERTAINMENT, INC.",
@ -3036,23 +3038,10 @@ M_Menu_Credits_f(void)
creditsIndex[n] = 0; creditsIndex[n] = 0;
credits = (const char **)creditsIndex; credits = (const char **)creditsIndex;
} }
else
{
if (M_IsGame("xatrix")) /* Xatrix - The Reckoning */
{
credits = xatcredits;
}
else if (M_IsGame("rogue")) /* Rogue - Ground Zero */
{
credits = roguecredits;
}
else else
{ {
credits = idcredits; credits = idcredits;
} }
}
credits_start_time = cls.realtime; credits_start_time = cls.realtime;
M_PushMenu(M_Credits_MenuDraw, M_Credits_Key); M_PushMenu(M_Credits_MenuDraw, M_Credits_Key);