| 164 | } |
| 165 | |
| 166 | int ReadCount(int maxValue = SQUARE(1024)) |
| 167 | { |
| 168 | int count = ReadInt32(); |
| 169 | |
| 170 | if (count < 0 || count > maxValue) |
| 171 | throw std::exception("Level data block has incorrect size. Level version is probably outdated."); |
| 172 | |
| 173 | return count; |
| 174 | } |
| 175 | |
| 176 | void ReadBytes(void* dest, int count) |
| 177 | { |
no test coverage detected