changeset 72:8cf53c768138

Use InvalidTextureName().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 26 Sep 2011 12:48:29 +0300
parents 210bfe10609f
children 55d2e718bb28
files src/checks.cc
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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,