- 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:
parent
4626492f50
commit
7308e05ed0
11 changed files with 716 additions and 621 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue