Chaosforge Forum

DoomRL => Bug Reports => Topic started by: 2birds1stone on October 10, 2013, 01:35

Title: Enemies don't respawn if killed on edge of map
Post by: 2birds1stone on October 10, 2013, 01:35
On Phobos Base Entry, N! AoMC, I killed an enemy on the edge of the map like so:

(http://s8.postimg.org/s0untcnhx/Untitled.png)

After quite a lot of combat, I noticed he hadn't respawned yet, and found it odd. After waiting around the door so I could kill them all in it, I went outside to take their ammo, and noticed he was still dead. I experimentally waited for something like 20 000 turns, and he still hadn't respawned. I asked the sacred Google, and found no mention of this.
Title: Re: Enemies don't respawn if killed on edge of map
Post by: thelaptop on October 10, 2013, 03:44
Once again, I can't see your picture right now from this network I'm on, but will do so when I have the chance.

Thanks for the report.
Title: Re: Enemies don't respawn if killed on edge of map
Post by: thelaptop on October 10, 2013, 06:57
Okay I just had a look at the picture -- and I realised it's too small to actually see what's going on.

Which side of the edge of the map are we looking at?
Title: Re: Enemies don't respawn if killed on edge of map
Post by: Eyro on October 10, 2013, 09:10
Bottom edge; Pic is huge for me.
Title: Re: Enemies don't respawn if killed on edge of map
Post by: thelaptop on October 10, 2013, 18:48
Alright, I officially hate my ISPs.  I'll take a look at the code and see what gives.  It's probably one of those off-by-one stuff every programmer is famous for doing.
Title: Re: Enemies don't respawn if killed on edge of map
Post by: MaiZure on October 11, 2013, 04:59
It's probably one of those off-by-one stuff every programmer is famous for doing.

Seriously, Who starts counting at ZERO anyway??
Title: Re: Enemies don't respawn if killed on edge of map
Post by: Mader Levap on October 11, 2013, 14:02
Seriously, Who starts counting at ZERO anyway??
Programmers. And it makes actually sense in this contex.
Title: Re: Enemies don't respawn if killed on edge of map
Post by: shark20061 on October 11, 2013, 16:02
The area checked for respawn specifically ignores the edge of the map.  That's an easy change.

Past versions got away with this because every level had an indestructible border around it.  Currently, there are a few levels that don't, Phobos Entry being one of them.

Edit: And now fixed in repo.