Bug with wander spawns

I decided to make a topic because this is the second time this has happened to me. Essentially if i save and quit my game while close to a horde, the horde will be all around me when i reload. The first time this happened they literally appeared from thin air around my character as soon as one tick passed, but the second time they kind of moved off the initial screen, but still between me and my getaway vehicle. Not sure if this is a known bug with saving and hordes or what, but thought it might be worth sharing incase anyone else has experienced something similar

Not sure if this is related, but I do have hordes on:

All those zombies just appeared there while I was driving by. Did not reload or anything.

Zombies can literally spawn anywhere you can not see at this moment. That’s just the way it works at the moment.

No seems to be something else going on, just had bunch of zombies spawn to east of me in an area that I’m seeing while I pressed wait turn button (numpad 5).

Yes, that’s the distance.

    if( !ignore_sight ) {
        // If the submap is one of the outermost submaps, assume that monsters are
        // invisible there.
        // When the map shifts because of the player moving (called from game::plmove),
        // the player has still their *old* (not shifted) coordinates.
        // That makes the submaps that have come into view visible (if the sight range
        // is big enough).
        if( gp.x == 0 || gp.y == 0 || gp.x + 1 == MAPSIZE || gp.y + 1 == MAPSIZE ) {
            ignore_sight = true;
        }
    }

So basically this is a “feature”.

Either there’s another bug or that code is not working properly, what it is supposed to do is skip the (expensive) sight check if the monster-to-be-spawned is outside of the player’s maximum sight range.