/ * TextureToNumber: Return the number associated with the given texture name. */
| 96 | * TextureToNumber: Return the number associated with the given texture name. |
| 97 | */ |
| 98 | int TextureToNumber(char *name) |
| 99 | { |
| 100 | if (!strcmp(name, "-") || name[0] == 0) |
| 101 | return 0; |
| 102 | |
| 103 | TextureInfo *info = FindTextureByName(name); |
| 104 | if (info == NULL) |
| 105 | { |
| 106 | Notify("TextureToNumber got bad texture name %s", name); |
| 107 | return 0; |
| 108 | } |
| 109 | return info->number; |
| 110 | } |
| 111 | /***************************************************************************/ |
| 112 | /* |
| 113 | * read in the wall texture names |
no test coverage detected