use memcmp during startup map check

prob not faster just looks a bit better tbh
This commit is contained in:
Alug committed 2025-05-31 17:20:46 +02:00
1 parent acabd1a03e
commit 796204d376
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')