Commit Graph

1360 Commits

Author SHA1 Message Date
Tyler Trahan
25ad0317fb Feature: Draw infinite water when all borders are water (#13289) 2025-12-08 16:41:31 +05:00
Kuhnovic
4f5ef4e720 Codechange: Use YAPF for river builder pathfinder. (#14606) 2025-12-08 15:52:53 +05:00
Kuhnovic
d3f0c65c76 Change: Removed disable_node_optimization YAPF setting (#14578) 2025-12-08 15:47:42 +05:00
Michael Lutz
715b1fb405 Codechange: Use an enum for vehicle acceleration model. 2025-12-08 15:40:58 +05:00
Peter Nelson
a2b2fe3058 Codechange: Remove two vector typedefs which are only used once. (#14612) 2025-12-08 15:39:39 +05:00
Peter Nelson
9d9390f89d Change: Allow bridges over locks. (#14595)
The bridge must be at least 2 levels higher than the lock.
2025-12-08 15:37:51 +05:00
Peter Nelson
5833ac7497 Change: Allow bridges over docks. (#14594) 2025-12-08 15:36:15 +05:00
Peter Nelson
f5dbc31ffd Codechange: Split table data out of rail.cpp (#14597) 2025-12-08 15:36:10 +05:00
Peter Nelson
8683a9616d Codechange: Give better names to water tile layouts. (#14592) 2025-12-08 15:36:05 +05:00
Peter Nelson
3a73fe7973 Codechange: Use span instead of raw pointer for animated cursors. (#14575)
This allows the terminator entry to be removed.
2025-12-08 15:33:49 +05:00
dP
732de20db5 Merge branch 'v14' 2025-12-02 05:06:04 +05:00
dP
bdc099d1b5 Experimental town growth highlight with icons 2025-12-02 03:37:20 +05:00
dP
e4ac251f42 Implement palette mixing in highlights 2025-11-29 01:19:34 +05:00
dP
f356de80b1 Add mixed tint palette remaps 2025-11-28 17:36:05 +05:00
dP
18460f24a7 Merge branch 'v14' 2025-10-17 22:30:58 +05:00
dP
0ba1ed61a5 Add no unload option to station order modifier hotkey actions 2025-10-01 01:32:53 +05:00
dP
569657e904 Return citymania settings back 2025-09-28 15:19:58 +05:00
dP
8404c2a7cc Merge remote-tracking branch 'upstream/master' 2025-09-28 02:33:49 +05:00
dP
3386f8caff Merge branch 'v14' 2025-09-04 23:08:10 +05:00
dP
4fec64525a Merge branch 'openttd' 2025-09-01 23:28:07 +05:00
Rubidium
7c0f69a8fe Codefix: typos in comments and strings 2025-08-31 10:30:37 +02:00
Peter Nelson
9a294ab2ed Feature: Allow stations and roadstops under bridges.
Bridges above stations will have pillars excluded if they conflict with the station layout.

Partly based on the system implemented in JGRPP.

Co-authored-by: <su@angel-island.zone>
2025-08-20 21:40:41 +01:00
Peter Nelson
3a5eaf367a Feature: Option to disable activate-on-release behaviour of toolbar dropdown buttons. 2025-08-18 19:48:22 +01:00
Peter Nelson
48b42492bc Add: [NewGRF] Add extra information to bridges about pillars.
Bridges can now include information about pillars and blocked edges for each bridge piece.

This data is set for default bridges, and NewGRFs can provide their own pillar information.
2025-08-15 23:20:18 +01:00
Su
85af200788 Add: Identify cities on the main viewport by appending an icon to their names (#14504)
Co-authored-by: Peter Nelson <peter1138@openttd.org>
2025-08-15 16:49:25 -04:00
Peter Nelson
4a4613e630 Change: Reduce visual height of default rail waypoints. (#14503)
Added 20 years ago, these were perhaps out of proportion with default rail stations.
2025-08-08 17:53:46 +01:00
Mizuki Nguyen
45929c1672 Add: Currency: Vietnamese Dong (#14474) 2025-08-05 20:16:12 +01:00
Peter Nelson
f51067f9f5 Codechange: Give all bridge sprite tables descriptive names. (#14483)
Finish off the work started 17 years ago...
2025-07-27 20:14:37 +01:00
Peter Nelson
10eeba86a6 Codechange: Simplify/breakout logic for selecting bridge table sprites.
Move various base offsets to separate functions where they can be reused and documented.

No longer rely on coincidences to select the correct data between bridges and aqueducts.
2025-07-23 20:31:15 +01:00
Peter Nelson
921d83c324 Codechange: Unify structures with sprite sub-tile bounds and simplify bounding boxes. (#14424)
Lots of different structs contain variations on sub-tile bounds with different naming. Unify into a single struct that can be inherited and passed directly to AddSortableSpriteToDraw.

At the same time, offsets now work more logically: sub-tile bounds now specify the bounding box, and an offset can be applied to the sprite.
2025-07-22 00:02:00 +01:00
Peter Nelson
8e2df7809b Codechange: Add distinct type to hold pixel drawing colour. (#14457)
This is used for individual pixels as well as line drawing.
2025-07-20 22:57:55 +01:00
dP
2ba9439554 Add settings to set depot order modifier hotkeys 2025-07-10 19:59:00 +05:00
Tyler Trahan
259830777c Fix #14375: When loading config, validate timekeeping mode and minutes per year (#14405) 2025-07-09 16:04:38 -04:00
Tyler Trahan
e578668a93 Fix #14360: Don't reuse strings for Low/Medium/High setting values (#14409) 2025-07-02 06:09:39 -04:00
dP
eea94297c9 Merge remote-tracking branch 'upstream/master' 2025-06-30 14:23:50 +05:00
dP
73cdeac5a1 Fix compilation erorrs 2025-06-30 14:21:06 +05:00
dP
0fe7c3635c Fix compilation errors after the merge 2025-06-27 18:03:03 +05:00
Peter Nelson
a46a3a97f3 Change: New company face definition system and UI. (#14319)
Bits used by company faces are now defined by a variable system instead of being hardcoded, allowing future expansion.

The four face types covering gender and skin colour are now separate face styles with their own definitions.
2025-06-24 07:59:49 +01:00
dP
f0f93c68ca Merge remote-tracking branch 'upstream/master' 2025-06-14 17:01:17 +05:00
dP
f388ddce1f Merge branch 'openttd' 2025-06-09 19:30:22 +05:00
Peter Nelson
7c9393e822 Codechange: Remove terminator from airport tile lists. (#14306) 2025-05-27 20:23:59 +01:00
Peter Nelson
daef052329 Add: Generic "configure list/view" vertical ellipsis icon. 2025-05-25 09:13:05 +01:00
dP
df3a6e321f Merge remote-tracking branch 'upstream/master' 2025-05-14 18:41:13 +05:00
Rubidium
02d8ae018c Codechange: simplify getting the value of a NewGRF property 2025-05-11 13:48:23 +02:00
Rubidium
96873dee63 Codechange: use std::array.fill over memset 2025-05-09 17:20:41 +02:00
Peter Nelson
2feba80fd7 Codechange: Codestyle fixes for elrail code. 2025-05-07 20:34:33 +01:00
Peter Nelson
4a8dd494ee Codechange: Don't abbreviate TileLocationGroup type name. 2025-05-07 20:34:33 +01:00
Peter Nelson
1ac9f24f38 Codechange: Use (Diag)Directions when drawing catenary. 2025-05-07 17:31:29 +01:00
frosch
8571af9833 Codechange: Turn ZoomLevel into enum class. 2025-05-03 23:21:09 +02:00
Rubidium
5ca686261e Codechange: use std::string_view for the string setting defaults 2025-05-01 23:24:43 +02:00