Better check to find out if pos(x,y) is indoors.

Fixes opening windows while not standing on a floor tile.