[Bug]: Ctrl modifier not detected
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 8.3k
- Forks
- 1.3k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 37
Description
Version of OpenTTD
2d2a5dd9661f842b0399d367883e6bbf1f19cdca Ubuntu 22.04
Expected result
Holding down the Ctrl key when clicking results in modified actions, eg joining new station to non-adjacent station, cloning vehicle with shared orders etc.
Actual result
Holding down Ctrl key has no effect - new stations are always new stations, not giving the option to join to existing ones; cloned vehicles are always clones with non-shared orders etc.
Steps to reproduce
Built from source on Ubuntu 22.04. No particular options selected - just:
$ git clone https://github.com/OpenTTD/OpenTTD
$ cd OpenTTD
$ mkdir build
$ cd build
$ cmake ..
$ make -j9
$ ./openttd
There doesn't appear to be anything special about the savegame or NewGRFs.
The version packaged for Ubuntu 22.04 does not have this problem, only when built from source as described above.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the Ubuntu 22.04 source-build commands in the report, then trace the input-handling path for Ctrl during station construction and vehicle cloning. Done means Ctrl is detected in the source build and modified actions, including joining non-adjacent stations and cloning shared orders, work as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100