# HG changeset patch # User Matti Hamalainen # Date 1317030509 -10800 # Node ID 8cf53c768138b45ee06656541afbcebc0c4b8c42 # Parent 210bfe10609fdbeb78df1741bb9e8b718146b5ee Use InvalidTextureName(). diff -r 210bfe10609f -r 8cf53c768138 src/checks.cc --- a/src/checks.cc Mon Sep 26 12:47:29 2011 +0300 +++ b/src/checks.cc Mon Sep 26 12:48:29 2011 +0300 @@ -607,9 +607,7 @@ LogMessage("\nVerifying textures...\n"); for (n = 0; n < NumSectors; n++) { - if (strcmp(Sectors[n].ceilt, "-") == 0 - || strcmp(Sectors[n].ceilt, "") == 0 - || memcmp(Sectors[n].ceilt, " ", 8) == 0) + if (InvalidTextureName(Sectors[n].ceilt)) { sprintf(msg1, "Error: sector #%d has no ceiling texture", n); sprintf(msg2, @@ -618,9 +616,7 @@ GoToObject(Objid(OBJ_SECTORS, n)); return; } - if (strcmp(Sectors[n].floort, "-") == 0 - || strcmp(Sectors[n].floort, "") == 0 - || memcmp(Sectors[n].floort, " ", 8) == 0) + if (InvalidTextureName(Sectors[n].floort)) { sprintf(msg1, "Error: sector #%d has no floor texture", n); sprintf(msg2,