aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--brlyt.c4
-rw-r--r--general.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/brlyt.c b/brlyt.c
index 386c5bc..27d1f0b 100644
--- a/brlyt.c
+++ b/brlyt.c
@@ -1543,6 +1543,7 @@ void WriteBRLYTEntry( mxml_node_t * tree , mxml_node_t * node , u8** tagblob , u
char *names;
names = malloc(sizeof(names));
int lengthOfNames = 0;
+ numberOfTextures = 0;
mxml_node_t *subnode = mxmlFindElement(node, node, "entries", NULL, NULL, MXML_DESCEND);
if (subnode != NULL)
{
@@ -1574,6 +1575,7 @@ void WriteBRLYTEntry( mxml_node_t * tree , mxml_node_t * node , u8** tagblob , u
*fileOffset = *fileOffset + sizeof(chunk2);
numEntries++;
+ numberOfTextures++;
baseOffset += (strlen(tempSub) + 1);
@@ -1691,6 +1693,7 @@ void WriteBRLYTEntry( mxml_node_t * tree , mxml_node_t * node , u8** tagblob , u
}
if ( memcmp(temp, mat1, sizeof(mat1)) == 0)
{
+ numberOfMaterials = 0;
int numberOfEntries = 0;
int actualNumber = 0;
brlyt_numoffs_chunk numchunk;
@@ -1719,6 +1722,7 @@ void WriteBRLYTEntry( mxml_node_t * tree , mxml_node_t * node , u8** tagblob , u
for(subnode=mxmlFindElement(node,node,"entries",NULL,NULL,MXML_DESCEND);subnode!=NULL;subnode=mxmlFindElement(subnode,node,"entries",NULL,NULL,MXML_DESCEND))
{
numberOfEntries += 1;
+ numberOfMaterials++;
char temp[256];
if(mxmlElementGetAttr(subnode, "name") != NULL)
strcpy(temp, mxmlElementGetAttr(subnode, "name"));
diff --git a/general.h b/general.h
index 5ca7b05..40419d4 100644
--- a/general.h
+++ b/general.h
@@ -12,7 +12,7 @@
#define BENZIN_VERSION_MAJOR 1
#define BENZIN_VERSION_MINOR 9
-#define BENZIN_VERSION_BUILD 8
+#define BENZIN_VERSION_BUILD 9
#define BENZIN_VERSION_OTHER "BETA"
#define INFORMATION_TEXT \