disable the size check I added (workaround for regression found by Ivanovic)
This commit is contained in:
parent
86ec752156
commit
8888752389
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue