OpenTTD / OpenTTD/OpenTTD

[Bug]: Ctrl modifier not detected

Open
#10,008 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs triage OS: Linux
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.