- Fixed: deadthings.txt contained a superfluous ';' which created parsing errors

with my changed code.
- Cleaned up DECORATE parser a little - moved the old style parsing code into its 
  own file and rearranged a few things.
- Made ProcessStates non-static so that it doesn't need to be passed as an argument
  to all functions in the DECORATE parser.
- Moved DECORATE parser files into their own subdirectory.
- Optimization: SC_GetToken no longer sets sc_name for identifiers. In most cases
  this creates needless overhead by adding a potentially unneeded name to the name
  table and looking up the name. In almost all cases where a name is needed it's as
  easy to assign sc_String to the name variable.
- Added enum definitions to DECORATE.


SVN r537 (trunk)
This commit is contained in:
Christoph Oelckers 2007-05-28 14:46:49 +00:00
commit 50f75b6e8a
28 changed files with 3085 additions and 2935 deletions

View file

@ -52,7 +52,7 @@
#include "templates.h"
#include "cmdlib.h"
extern void LoadDecorations (void (*process)(FState *, int));
extern void LoadDecorations ();
// Each state is owned by an actor. Actors can own any number of
// states, but a single state cannot be owned by more than one
@ -215,7 +215,7 @@ int GetSpriteIndex(const char * spritename)
//
//==========================================================================
static void ProcessStates (FState *states, int numstates)
void ProcessStates (FState *states, int numstates)
{
int sprite = -1;
@ -278,7 +278,7 @@ void FActorInfo::StaticInit ()
}
Printf ("LoadDecorations: Load external actors.\n");
LoadDecorations (ProcessStates);
LoadDecorations ();
}
//==========================================================================