Skip to content

Commit

Permalink
Fix signal placement failing on very large turns (#2291)
Browse files Browse the repository at this point in the history
* Fix signal placement failing on very large turns

* Add changelog entry
  • Loading branch information
duncanspumpkin committed Feb 18, 2024
1 parent 3fd0479 commit 27ade02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fix: [#2283] Bankrupt ai companies not being removed from the game.
- Fix: [#2287] Scroll wheel not working in load/save window.
- Fix: [#2290] Construction arrow not being correctly invalidated.
- Fix: [#2291] Signals fail to be placed when selecting one end of large curve track.

24.01.1 (2024-01-17)
------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/OpenLoco/src/GameCommands/Track/CreateSignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace OpenLoco::GameCommands
: pos(regs.ax, regs.cx, regs.di)
, rotation(regs.bh & 0x3)
, trackId(regs.dl & 0x3F)
, index(regs.dh & 0x3)
, index(regs.dh)
, type((regs.edi >> 16) & 0xFF)
, trackObjType(regs.ebp & 0xFF)
, sides((regs.edi >> 16) & 0xC000)
Expand Down

0 comments on commit 27ade02

Please sign in to comment.