| 113 | } |
| 114 | |
| 115 | bool ValidateTilenum(const char* cmd, int tile, FScriptPosition pos) |
| 116 | { |
| 117 | if ((unsigned)tile >= MAXUSERTILES) |
| 118 | { |
| 119 | pos.Message(MSG_ERROR, "%s: Invalid tile number %d", cmd, tile); |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | return true; |
| 124 | } |
| 125 | |
| 126 | //=========================================================================== |
| 127 | // |
no test coverage detected