mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 22:03:00 +05:30
Eliminated unneeded parameter
This commit is contained in:
parent
dce4180d5d
commit
6d0deefe43
@ -52,9 +52,8 @@ unsigned int gettexturebatch(
|
|||||||
const char*,
|
const char*,
|
||||||
unsigned int);
|
unsigned int);
|
||||||
|
|
||||||
void gettextures(unsigned int*,
|
void locatetextures(unsigned int*,
|
||||||
struct TexturePack*,
|
struct TexturePack*,
|
||||||
struct TextureBatch**,
|
struct TextureBatchDescriptor**);
|
||||||
struct TextureBatchDescriptor**);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -78,10 +78,9 @@ unsigned int gettexturebatch(
|
|||||||
return totaltextures;
|
return totaltextures;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gettextures(unsigned int *t,
|
void locatetextures(unsigned int *t,
|
||||||
struct TexturePack *tp,
|
struct TexturePack *tp,
|
||||||
struct TextureBatch **tb,
|
struct TextureBatchDescriptor **bds) {
|
||||||
struct TextureBatchDescriptor **bds) {
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
unsigned int j;
|
unsigned int j;
|
||||||
// k is access to index of textures.
|
// k is access to index of textures.
|
||||||
|
@ -124,7 +124,7 @@ void unpacktextures(const char *filedata,
|
|||||||
filesize);
|
filesize);
|
||||||
unsigned int *tloc = (unsigned int*)
|
unsigned int *tloc = (unsigned int*)
|
||||||
malloc(sizeof(unsigned int) * texturecount);
|
malloc(sizeof(unsigned int) * texturecount);
|
||||||
gettextures(tloc, tp, batches, descripts);
|
locatetextures(tloc, tp, descripts);
|
||||||
// add 3 to buffer for digits, & 4 for file extension
|
// add 3 to buffer for digits, & 4 for file extension
|
||||||
char *fmt = (char*)malloc(strlen(filename) + 3 + 4);
|
char *fmt = (char*)malloc(strlen(filename) + 3 + 4);
|
||||||
unsigned int texsize = 0;
|
unsigned int texsize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user