mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- Use weapon enums when determining max slot numbers.
This commit is contained in:
parent
4d82a0effa
commit
2658af9fd0
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ CCMD(slot)
|
|||
{
|
||||
// The max differs between games so we have to handle this here.
|
||||
const bool isDukeShareware = (g_gameType & (GAMEFLAG_DUKE | GAMEFLAG_SHAREWARE)) == (GAMEFLAG_DUKE | GAMEFLAG_SHAREWARE);
|
||||
const int max = isExhumed() || isDukeShareware ? 7 : isBlood() ? 12 : 10;
|
||||
const int max = isExhumed() || isDukeShareware ? WeaponSel_MaxExhumed : isBlood() ? WeaponSel_MaxBlood : WeaponSel_Max;
|
||||
|
||||
if (argv.argc() != 2)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue