Remove excess conversion to lowercase of imd filenames and function

to do so.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1130 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-02-16 22:49:56 +00:00
parent 1f88208c8c
commit f5b266c722
2 changed files with 0 additions and 20 deletions

View File

@ -48,7 +48,6 @@
# if defined(WZ_CC_MSVC) # if defined(WZ_CC_MSVC)
# define strcasecmp _stricmp # define strcasecmp _stricmp
# define strncasecmp _strnicmp # define strncasecmp _strnicmp
# define strlwr _strlwr
# define vsnprintf _vsnprintf # define vsnprintf _vsnprintf
# define snprintf _snprintf # define snprintf _snprintf
# define fileno _fileno # define fileno _fileno

View File

@ -62,22 +62,6 @@ static char *_imd_get_path(char *filename, char *path);
BOOL CheckColourKey(iIMDShape *psShape); BOOL CheckColourKey(iIMDShape *psShape);
#ifndef WIN32
// convert a string to lower case... by Tim ... dedicated to JS ... with love
void strlwr(char *String)
{
while (*String != 0) {
// loop around till we reach the end of the zero terminated string
if ((*String >= 'A') && (*String <= 'Z')) {
// if the current letter is in upper case...
*String += ('a'-'A'); // ... convert it to lower case
}
String++; // move to the next letter
}
}
#endif
static BOOL AtEndOfFile(char *CurPos, char *EndOfFile) static BOOL AtEndOfFile(char *CurPos, char *EndOfFile)
{ {
while ((*CurPos==0x09)||(*CurPos==0x0a)||(*CurPos==0x0d)||(*CurPos==0x20)||(*CurPos==0x00)) while ((*CurPos==0x09)||(*CurPos==0x0a)||(*CurPos==0x0d)||(*CurPos==0x20)||(*CurPos==0x00))
@ -120,7 +104,6 @@ iIMDShape *iV_IMDLoad(char *filename, iBool palkeep)
iV_DEBUG1("imd[IMDLoad] = loading shape file '%s':",filename); iV_DEBUG1("imd[IMDLoad] = loading shape file '%s':",filename);
strcpy(_IMD_NAME,filename); strcpy(_IMD_NAME,filename);
strlwr(_IMD_NAME);
_imd_get_path(filename,path); _imd_get_path(filename,path);
@ -277,8 +260,6 @@ iIMDShape *iV_ProcessIMD(char **ppFileData, char *FileDataEnd, char *IMDpath,
#ifndef PIETOOL // The BSP tool should not reduce the texture page name down (please) #ifndef PIETOOL // The BSP tool should not reduce the texture page name down (please)
// Super scrummy hack to reduce texture page names down to the page id // Super scrummy hack to reduce texture page names down to the page id
if (bTextured) { if (bTextured) {
//resToLower(texfile);
// printf("texfile cmp in imdload.c :%s\n", texfile);
if (strncasecmp(texfile, "page-", 5) == 0) { if (strncasecmp(texfile, "page-", 5) == 0) {
for(i = 5; i < (SDWORD)strlen(texfile); i++) { for(i = 5; i < (SDWORD)strlen(texfile); i++) {
if (!isdigit(texfile[i])) { if (!isdigit(texfile[i])) {