fixed Hall of Mirrors with high sightrange

This commit is contained in:
Zeno Rogue 2017-09-30 11:41:29 +02:00
parent 3e494f40f5
commit e2c66abf5b
1 changed files with 5 additions and 0 deletions

View File

@ -1378,6 +1378,11 @@ namespace mirror {
cellwalker reflect(const cellwalker& cw) {
if(!cw.c) return cw;
if((cw.c->landparam & 255) == 0) {
bool cando = false;
forCellEx(c2, cw.c) if(c2->landparam & 255) cando = true;
if(cando) buildEquidistant(cw.c);
}
int cid = (cw.c->landparam >> 8) & CACHEMASK;
if(cache[cid].first != cw.c) {
cid = nextcache++;