* fixed warnings

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@278 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
mattn
2008-06-26 11:40:59 +00:00
parent 6d10428141
commit 99b8049c8c
12 changed files with 50 additions and 48 deletions

View File

@@ -52,7 +52,7 @@ void Patch_Write(patchMesh_t *pPatch, IDataStream *out)
if(!strncmp(str, "textures/", 9)) str+=9;
out->printf("patchDef2\n{\n%s\n( %i %i 0 0 0 )\n",
str, pPatch->width, pPatch->height);
// write matrix
out->printf("(\n");
for(i=0; i<pPatch->width; i++)
@@ -117,7 +117,7 @@ void Face_Write (face_t *face, IDataStream *out, bool bAlternateTexdef = false)
if (g_MapVersion == MAPVERSION_HL)
{
char *pos;
while ( pos = (char*)strchr( str, '/' ) ) {
while ( (pos = (char*)strchr( str, '/' )) != NULL ) {
str = pos+1; // to speed optimize, change the "while" to an "if"
}
}