- 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:
Christoph Oelckers 2006-07-13 10:24:54 +00:00
parent 31c749058b
commit bada3bf462
2 changed files with 11 additions and 6 deletions

View file

@ -1,4 +1,10 @@
July 13, 2006 (Changes by Graf Zahl)
- 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.
- Generalized Hexen's class-based spawning to be a property of the player class
so now it is available in all games.
- Replaced the call to A_FlameSnd in the HereticPlayer's burn death sequence

View file

@ -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++;