- Removed some unnecessary morphing code.

- Fixed some bugs in the HIRESTEX parser.
- Added floating point support and #include and #define tokens to 
  FParseContext  Not used yet.
- replaced the value scanning code in FParseContext::GetToken with
  calls to strtol.


SVN r893 (trunk)
This commit is contained in:
Christoph Oelckers 2008-04-08 17:25:19 +00:00
commit f7a1fb3978
8 changed files with 49 additions and 44 deletions

View file

@ -45,6 +45,7 @@
#include "sc_man.h"
#include "gi.h"
#include "st_start.h"
#include "cmdlib.h"
extern void R_InitBuildTiles();
@ -521,6 +522,8 @@ void FTextureManager::LoadHiresTex(int wadnum)
else if (sc.Compare("sprite")) type=FTexture::TEX_Sprite, mode=0;
else type = FTexture::TEX_Any, mode = 0;
if (type != FTexture::TEX_Any) sc.MustGetString();
sc.String[8]=0;
tlist.Clear();
@ -577,7 +580,7 @@ void FTextureManager::LoadHiresTex(int wadnum)
else if (sc.Compare("define")) // define a new "fake" texture
{
sc.GetString();
memcpy(src, sc.String, 8);
memcpy(src, ExtractFileBase(sc.String, false), 8);
int lumpnum = Wads.CheckNumForFullName(sc.String, true, ns_graphics);