materials.txt support: Make sure we convert the material identifer to upper-case.
This commit is contained in:
parent
aeae39fc9a
commit
1952c05890
1 changed files with 3 additions and 1 deletions
|
@ -351,9 +351,11 @@ void initents(void)
|
|||
while ((sTemp = fgets(fileMaterial))) {
|
||||
/* tokenize and just parse this stuff in */
|
||||
if (tokenize_console(sTemp) == 2) {
|
||||
string mat_type;
|
||||
string tex_name;
|
||||
mat_type = strtoupper(argv(0));
|
||||
tex_name = Materials_FixName(strtolower(argv(1)));
|
||||
hash_add(hashMaterials, strtolower(argv(1)), str2chr(argv(0), 0));
|
||||
hash_add(hashMaterials, strtolower(argv(1)), str2chr(mat_type, 0));
|
||||
}
|
||||
}
|
||||
fclose(fileMaterial);
|
||||
|
|
Loading…
Reference in a new issue