Gate the R/T debug keys behind OS.is_debug_build() #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TerrainGrid._unhandled_input()handles two development affordances:map_seedand regenerates, for eyeballing many seeds quickly.Both are useful and both currently ship in an exported build. R in particular would let a player destroy their colony's map with a stray keypress.
The cheap fix is an early return at the top of the handler:
That keeps them in editor and debug builds and strips them from a release export.
While here
These read raw physical keycodes rather than InputMap actions. That is fine for throwaway keys, but R and T are both plausible real bindings later (rotate, build menu), and a raw handler will silently compete with them. The POC's note applies: move to named actions once the game has real, rebindable bindings.
This was fixed with PR #14