I haven’t touched posix_time.h but I did disable nanosleep() in posix_time.cpp. I think it’s desirable to have walking and driving animations be as fast as possible. And for other animations that do need some slow down so we can even see them, like bullets and explosions, then Sleep() should do just fine.
Can we also remove the //CAT: and lines of code commented out then replaced. We have history anyway so don't need to do that.
It’s up to you to merge whatever you like, whichever way you like, but if possible leave those comments in lazycat branch. Those tags help me jump around through files and keep track of what parts to update in case I need to make some modification to the whole thing.
There appear to be a number of lights in the map::draw function marked as changed when they were just reordered (was there a good reason for that?) or removed completely and I'm not sure they should have been, looks like it's overwritten some of kevins recent changes there too.
Also the lightmap changes for vehicle parts, but I assume this is just from the original change set.
As far as I figure out what is map:draw supposed to do and how it should look like I found lots of stuff there have no real purpose and make no difference one way or another, or produce bugs, so I removed quite a bit of stuff from there completely, and as much as I tested it works fine (better) like that. I’m just not sure if I tested all the possible cases and scenarios.
Ultimately it’s up to you what to merge and how, but to fix flashlight you need to look at this part:
/*
// Don't display area as shadowy if it's outside and illuminated by natural light
else if (dist <= g->u.sight_range(g->natural_light_level()))
{
lowlight_sight_range = std::max(g_light_level, natural_sight_range);
}
*/
Just comment that bit out, or fix it otherwise, to get proper dark shade ring around the flashlight. Leave the rest if you like, I just don’t see how it matters and what is it supposed to do. I plan to re-write and improve that whole thing anyway, especially in relation to light/shadows, flashlights, candles, night vision and such, so I deleted it to easier look at it.