Bay 12 Games Forum

Other Projects => Curses => Topic started by: JeebusSez on November 29, 2008, 04:23:13 pm

Title: Clinic sleeper bug?
Post by: JeebusSez on November 29, 2008, 04:23:13 pm
Not really a game crushing bug, more of a minor annoyance, but I've recruited a sleeper at the free clinic. since then, the game has made sure to tell me daily that that particular sleeper has left the free clinic, although she's stationed there.
Title: Re: Clinic sleeper bug?
Post by: Earthquake Damage on November 29, 2008, 04:32:55 pm
To tell you the truth, I'm surprised this bug is still around.
Title: Re: Clinic sleeper bug?
Post by: JeebusSez on November 29, 2008, 04:35:26 pm
Ah, so it's an old one. Got it.
Title: Re: Clinic sleeper bug?
Post by: Jonathan S. Fox on November 29, 2008, 05:15:04 pm
I wasn't aware of it. ;) It should be easy to fix.
Title: Re: Clinic sleeper bug?
Post by: Earthquake Damage on November 29, 2008, 05:31:11 pm
I wasn't aware of it. ;) It should be easy to fix.

Speakin' of old bugs, you still didn't fix the "all keys pass a turn when raiding the Homeless Shelter" bug as of 240.  :P

The problem is here in sitemode.cpp IIRC:
Code: [Select]
         if(locx!=olocx||locy!=olocy||locz!=olocz||c=='s'||
            (cbase==cursite&&!location[cursite]->siege.siege))

So I guess if you're based at the shelter and you decide to raid it, that last bit returns true, thus a turn is passed.
Title: Re: Clinic sleeper bug?
Post by: Jonathan S. Fox on November 29, 2008, 07:34:34 pm
Check and check on the clinic sleeper bug and the homeless shelter turn passing bug.

I just removed that second line you quoted, Earthquake Damage. I have no idea why that was even in there. Maybe it's a holdover from an extremely old version of LCS, like... pre-3.0 or something.