<human>: Could you distill the essence of the text into 1-3 sentences?

My wife and I have an older cat (10) that has recently started peeing in a corner of our bedroom. We have another cat (and a dog for that matter) that is fine. At first, we figured it was an accident. Then we kept smelling it even after shampooing the carpet. Eventually we noticed a slight discoloration and decided we would just replace the carpet with wood flooring. Upon tearing up the carpet, we found a major issue... constant peeing had lead to the sub-floor being damaged, as well as the baseboard and part of the studs behind the drywall.

After ripping everything away but the studs and sub-floor, we blocked off the area until we could get the wood flooring in. Since then, the cat has moved about a foot closer to the corner and continues to pee. I've ripped up that carpet now as well, and moments ago the cat just said "fuck you" and pissed all over the exposed sub-floor. I even had it blocked off with a baby gate to avoid access. (It looks like he tried to get close to the same spot.)

I'm curious to know if anyone else has dealt with this issue. (I mean... come on, this is reddit. Cat problems shouldn't be unheard of.) We had a 2yr old that LOVES to open doors, so just keeping the door shut isn't an option. (We've tried - he sleeps in the room with us and has toys in there too.) When I was younger, we had a cat that did this as well (lived to be 17, started doing something like this when he was around 13-14). Never did find a solution. We don't want to put in wood flooring just to have him piss all over that too! Any help is greatly appreciated.
<bot>: We have an older cat that continues to pee in the same place in our bedroom, no matter what we've done to discourage it. Help!