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:38 +02:00
1 parent d8b2134aef
commit e13ba89f1a
1 file changed
+2 -2
+2 -2
View File
@@ -1812,7 +1812,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')
@@ -1842,7 +1842,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')