Commits

Anonymous committed 018a53e

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

  • Participants
  • Parent commits c42502d
  • Branches 0.6-dev

Comments (0)

Files changed (1)

File common/w_wad.cpp

 		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);