use memcmp during startup map check

prob not faster just looks a bit better tbh
This commit is contained in:
Alug committed 2025-07-24 16:27:30 +02:00
1 parent 1faa585e83
commit d09d2cb445
1 file changed
+2 -2
+2 -2
View File
@@ -1809,7 +1809,7 @@ void D_SRB2Main(void)
{
name = lumpinfo->name;
if (name[0] == 'M' && name[1] == 'A' && name[2] == 'P') // Ignore the headers
if (memcmp(name, "MAP", 3) == 0) // Ignore the headers
{
INT16 num;
if (name[5] != '\0')
@@ -1839,7 +1839,7 @@ void D_SRB2Main(void)
{
name = lumpinfo->name;
if (name[0] == 'M' && name[1] == 'A' && name[2] == 'P') // Ignore the headers
if (memcmp(name, "MAP", 3) == 0) // Ignore the headers
{
INT16 num;
if (name[5] != '\0')