CleverRaven / CleverRaven/Cataclysm-DDA
Switching windows cause some issues in game
- Dominant language
- C++
- Stars
- 13.2k
- Forks
- 4.6k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 205
Description
### Describe the bug
Sometimes, when i switch CDDA window to another one, and turn back, it causes several problems:
- Each switch reset the minimap window, like its in complete dark:
normally working map:

map after switch

map when i walked few tiles after switch

- Sometimes it also causes a black screen for the whole game window, without the way to fix it
- Once ive got the second bug on the map menu, and all map was visually corrupted
Map without a bug

Map with a bug

Map, if you move the camera to a few tiles

### Steps to reproduce
1. Play game
2. Switch your game sometimes
3. Bug
(I cant find any another reasons, it feels pretty random)
### Expected behavior
not having a bug
### Screenshots
_No response_
### Versions and configuration
- OS: Windows
- OS Version: 10.0 2009
- Game Version: 9da956a [32-bit]
- Graphics Version: Tiles
- Game Language: Russian []
- Mods loaded: [
[dda],
[no_fungal_growth],
[no_npc_food],
[speedydex],
[StatsThroughSkills],
[stats_through_kills],
[blazeindustries],
[package_bionic_professions],
[magiclysm],
[crt_expansion],
[crazy_cataclysm],
[MMA],
[extra_mut_scens]
]
### Additional context
It can be related to some stuff with my system, i think, i played cdda while before but never has any of this issues
UPD: looks like second issue also can be fixed by making some stuff that reupdate the window, like open minimap if bug happened in main screen and vice versa
UPDD: Second issue provides when the error occur, and can be fixed by pressing `I`
Contributor guide
Research direction
Start by reproducing the issue on Windows 10 with the 32-bit Tiles configuration while switching away from and back to the game window. Observe the minimap, main screen, and map menu, including whether pressing I or moving a few tiles refreshes them. Done means window switching no longer leaves these views black or visually corrupted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100