disable the size check I added (workaround for regression found by Ivanovic)

This commit is contained in:
Anonymissimus 2012-01-20 14:02:12 +00:00
parent 86ec752156
commit 8888752389

View file

@ -261,7 +261,10 @@ void gamemap::read(const std::string& data, const bool allow_invalid)
total_height_ = total_width_ > 0 ? tiles_[0].size() : 0;
w_ = total_width_ - 2 * border_size_;
h_ = total_height_ - 2 * border_size_;
VALIDATE((w_ >= 1 && h_ >= 1), "A map needs at least 1 tile, the map cannot be loaded.");
//Disabled since there are callcases which pass along a valid map header but empty
//map data. Still, loading (and actually applying) an empty map causes problems later on.
//Other callcases which need to load a dummy map use completely empty data :(.
//VALIDATE((w_ >= 1 && h_ >= 1), "A map needs at least 1 tile, the map cannot be loaded.");
for(int x = 0; x < total_width_; ++x) {
for(int y = 0; y < total_height_; ++y) {