CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.1k stars 4.1k forks source link

Occlusion centre is incorrect during e`x`amine #74454

Open Procyonae opened 2 months ago

Procyonae commented 2 months ago

Describe the bug

The occlusion centre stays with your character for minor cursor movements Panning results in the centre remaining where it is relative to the screen

Attach save file

East Renton Highlands-trimmed.tar.gz Will throw a couple of errors bc of missing terrain unless you add the below to your json but they should be ignorable

  {
    "type": "mapgen",
    "method": "json",
    "om_terrain": [ "casings" ],
    "object": { "fill_ter": "t_region_groundcover", "item": { " ": { "item": "4570_casing", "chance": 100 } } }
  },
  {
    "type": "overmap_terrain",
    "id": "casings",
    "name": "nothing",
    "sym": "%",
    "color": "white",
    "flags": [ "NO_ROTATE" ]
  },
  {
    "type": "overmap_special",
    "id": "casings",
    "overmaps": [
      { "point": [ 0, 0, 0 ], "overmap": "casings" },
      { "point": [ 1, 0, 0 ], "overmap": "casings" },
      { "point": [ 2, 0, 0 ], "overmap": "casings" },
      { "point": [ 0, 1, 0 ], "overmap": "casings" },
      { "point": [ 0, 2, 0 ], "overmap": "casings" },
      { "point": [ 1, 1, 0 ], "overmap": "casings" },
      { "point": [ 2, 1, 0 ], "overmap": "casings" },
      { "point": [ 1, 2, 0 ], "overmap": "casings" },
      { "point": [ 2, 2, 0 ], "overmap": "casings" }
    ],
    "locations": [ "field" ],
    "occurrences": [ 0, 8 ]
  }

Steps to reproduce

  1. Switch to an iso tileset unless #74445 is merged
  2. Turn on auto occlusion with a small range (10 is fine)
  3. Examine and move the cursor around either with keyboard or mouse

Expected behavior

Ideally the occlusion should follow the cursor or follow the cursor but also remain around the player, but even just staying with the player would be better than the current functionality imo

Screenshots

image

image

Versions and configuration

Additional context

No response

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.