- Removed the game filter check from addplayerclass. If a player class is added
here the game filter is irrelevant and there's nothing that should prevent the HereticPlayer being added to a Hexen game, for example. - Changed: The addplayerclass CCMD was far too paranoid and needlessly aborted the game for any error being encountered. Since an empty player class list is checked for elsewhere outputting the messages to the console is sufficient. SVN r251 (trunk)
This commit is contained in:
parent
31c749058b
commit
bada3bf462
2 changed files with 11 additions and 6 deletions
|
|
@ -142,18 +142,17 @@ CCMD (addplayerclass)
|
|||
|
||||
if (!ti)
|
||||
{
|
||||
I_FatalError ("Unknown player class '%s'", argv[1]);
|
||||
Printf ("Unknown player class '%s'", argv[1]);
|
||||
}
|
||||
else if (!ti->IsDescendantOf (RUNTIME_CLASS (APlayerPawn)))
|
||||
{
|
||||
I_FatalError ("Invalid player class '%s'", argv[1]);
|
||||
Printf ("Invalid player class '%s'", argv[1]);
|
||||
}
|
||||
else if (ti->Meta.GetMetaString (APMETA_DisplayName) == NULL)
|
||||
{
|
||||
I_FatalError ("Missing displayname for player class '%s'", argv[1]);
|
||||
Printf ("Missing displayname for player class '%s'", argv[1]);
|
||||
}
|
||||
else if (ti->ActorInfo->GameFilter == GAME_Any ||
|
||||
gameinfo.gametype & ti->ActorInfo->GameFilter)
|
||||
else
|
||||
{
|
||||
FPlayerClass newclass;
|
||||
|
||||
|
|
@ -169,7 +168,7 @@ CCMD (addplayerclass)
|
|||
}
|
||||
else
|
||||
{
|
||||
I_FatalError ("Unknown flag '%s' for player class '%s'", argv[arg], argv[1]);
|
||||
Printf ("Unknown flag '%s' for player class '%s'", argv[arg], argv[1]);
|
||||
}
|
||||
|
||||
arg++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue