- separated all voxel related resource maintenance code from r_things.cpp and r_data.cpp into its own file.

SVN r3246 (trunk)
This commit is contained in:
Christoph Oelckers 2011-07-04 20:22:55 +00:00
commit 7308e05ed0
11 changed files with 716 additions and 621 deletions

View file

@ -61,7 +61,7 @@ extern void ClearStrifeTypes();
//
//==========================================================================
int GetSpriteIndex(const char * spritename)
int GetSpriteIndex(const char * spritename, bool add)
{
static char lastsprite[5];
static int lastindex;
@ -87,6 +87,10 @@ int GetSpriteIndex(const char * spritename)
return (lastindex = (int)i);
}
}
if (!add)
{
return (lastindex = -1);
}
spritedef_t temp;
strcpy (temp.name, upper);
temp.numframes = 0;