Closed AdonaiJr closed 4 years ago
So you meant was you were able to AIM, not just SEE? That's normal,since we are talking of ranged weapon.
you shouldn't be seeing other zlevels.
Wrong. Imagine yourself sitting on a roof and looking down on the ground level.
The question is: have you explored this lab previously? It's an exploit only if you've never been to this lab before yet the game allows you to look what's inside of it. If it's an already explored lab, then it's working as intended.
oh,i thought the lab wasn't explored. well then it IS a bug. a big one at that.
Can confirm for ubuntu/curses with using the x/lookaround action. It allows looking one z-level up/down only, and happens with ant-hills as well.
Can't confirm on latest experimental as of October 11, 2019, Windows 10 x64, tiles. Looking up or down doesn't allow you to see something that you haven't seen prior to that.
0.D-8418-g126c27ba3e, ubuntu 18.04.
I'm afraid i didn't test properly: the behaivior can be achieved by teleporting into solid rock. On the anthilll that is what i saw. The build was a previous one - on 0.D-8343-gc09cd976aa/ubuntu 18.04/curses i see the bug if directly below you is a solid wall adjecent to an open area. Then wen looking around below you can look into the area.
Ok I'm poking around in the code a bit, and it looks like something in the vicinity of game::draw_ter() and/or map::draw() is getting confused about the difference between the level the player is on and the layer being drawn.
I've reproduced this by generating a new world, spawning a 4x4 and a roadmap, then driving up to a lab entrance and e'x'amining and looking down 4 levels. You can only see the areas which are already illuminated. I suspect the difficulty in reproducing this is because you have to happen to look at a bright place below you.
The pertinent options are probably Z_levels ON Z-vision OFF I was pretty sure I tested with that, but maybe not.
Ok this turns out to be super simple. If you turn the 3D vision option off, the game becomes completely incapable of properly drawing other z-levels, so the answer is not to try.
What's happening is the game is drawing the map "as if the player were on that level", which is of course completely wrong. When the game has 3D vision enabled, it maintains a map of what the player can see at all times on all levels, so it just applies the vision map for a particular level and everything works as intended.
Describe the bug
You can see what's below/above you, when wielding a spear or ranged weapon in fire mode.
To Reproduce
Steps to reproduce the behavior:
If you do this besides a LAB, it's even more obvious that you shouldn't be seeing other zlevels.
Also, in the screenshots, observe that zlevels is changing.
Expected behavior
I found this bug when trying to change targets while in target mode.
Screenshots
Versions and configuration(please complete the following information):
Additional context
Add any other context about the problem here.
E.g. A link to a savegame that allows the issue to be reproduced.