diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index deebe42670..68fa56440e 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1529,7 +1529,11 @@ static void tag_read_level( struct tagHeader &th, char minorVersion ) env.map_col[i][j].flags = unmarshallShort(th); mgrd[i][j] = NON_MONSTER; - env.cgrid[i][j] = unmarshallByte(th); + env.cgrid[i][j] = (unsigned char) unmarshallByte(th); + + // Ugh! Backward compatibility. 101 was the old (buggy) EMPTY_CLOUD + if (minorVersion < 2 && env.cgrid[i][j] == 101) + env.cgrid[i][j] = EMPTY_CLOUD; } } |