# Tables have no roof

**URL:** <https://discourse.cataclysmdda.org/t/tables-have-no-roof/559>\
**Category:** The Garage\
**Created:** [March 23, 2013, 6:59pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559 "2013-03-23T18:59:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 23, 2013, 6:59pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/1 "2013-03-23T18:59:05Z")

</div>

Just noticed when exploring a mansion while raining. As the title says, rain drops were falling over all the tables inside.

---

<div class="post-metadata">

**Author:** ![bubbadoo14](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bubbadoo14/32/2716_2.png) [@bubbadoo14](https://discourse.cataclysmdda.org/u/bubbadoo14)\
**Post date:** [March 24, 2013, 8:44am UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/2 "2013-03-24T08:44:24Z")

</div>

Huh, that bug is still there. That bug has been there FOREVER. At least ever since I started playing cataclysm. And that was a long time ago. [size=8pt](I think almost a year? IDK haven’t kept track, terrible memory)[/size]  
[right]Sincerely, [/right]  
[right]Bubbadoo[/right]

---

<div class="post-metadata">

**Author:** ![kenoxite](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kenoxite/32/858_2.png) [@kenoxite](https://discourse.cataclysmdda.org/u/kenoxite)\
**Post date:** [March 24, 2013, 10:07am UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/3 "2013-03-24T10:07:37Z")

</div>

Funny thing is, I could swear I read somewhere this was already fixed. That’s why I was puzzled when I saw all that rain over the tables.

---

<div class="post-metadata">

**Author:** ![uzername](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@uzername](https://discourse.cataclysmdda.org/u/uzername)\
**Post date:** [March 26, 2013, 7:50pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/4 "2013-03-26T19:50:55Z")

</div>

well, I saw this in vanilla cataclysm. In weather.cpp we have two subroutines which define applying weather penalties. These are:

```auto

```

and

```auto

```

They all cast PLAYER\_OUTSIDE macro which is defined in this way:

```auto

```

As we can see, this macro calls is\_outside method for map instance. Let us have a look at it at map.cpp:

[code]  
bool map::is\_outside(const int x, const int y)  
{  
if(!INBOUNDS(x, y))  
return true;

return outside\_cache[x][y];  
}[/code]  
I am not sure about INBOUNDS macro but map::build\_outside\_cache subroutine defines that outside\_cache bool array. Soo…

If you’re standing on floor, rock floor, wax floor, fema groundsheet, dirt floor, bed, makeshift bed, groundsheet you’re protected from weather effects. Otherwise expect ‘wet’ penalties.  
Actually I find this mechanism to be strange.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [March 26, 2013, 8:15pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/5 "2013-03-26T20:15:21Z")

</div>

The zlevel revamp will fix this.

---

<div class="post-metadata">

**Author:** ![uzername](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@uzername](https://discourse.cataclysmdda.org/u/uzername)\
**Post date:** [March 26, 2013, 8:22pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/6 "2013-03-26T20:22:24Z")

</div>

So you’re going to revrite z-level code completely, am I right? If so, make plz a thread about it.

---

<div class="post-metadata">

**Author:** ![The\_Darkling\_Wolf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_darkling_wolf/32/828_2.png) [@The\_Darkling\_Wolf](https://discourse.cataclysmdda.org/u/The_Darkling_Wolf)\
**Post date:** [March 26, 2013, 9:08pm UTC](https://discourse.cataclysmdda.org/t/tables-have-no-roof/559/7 "2013-03-26T21:08:25Z")

</div>

Shades is well into the process of doing it, he’s already laid all the groundwork down for it. He has a thread in the modding subforum I think.
