Commits

Anonymous committed 018a53e

Apply RjY's patch for bug 783: convert lump names to upper case on load

Comments (0)

Files changed (1)

 		lump_p->position = LONG(fileinfo->filepos);
 		lump_p->size = LONG(fileinfo->size);
 		strncpy (lump_p->name, fileinfo->name, 8);
+
+		// W_CheckNumForName needs all lump names in upper case
+		std::transform(lump_p->name, lump_p->name+8, lump_p->name, toupper);
 	}
 
 	return W_MD5(filename);