Commit Graph

57667 Commits (05e237f8d139443ff0148a4e8164e47541a268c3)
 

Author SHA1 Message Date
Jonathan G Rennison 5b894edde8 Fix mismatch between struct Blitter and class Blitter declarations 5 months ago
Jonathan G Rennison 77772725be Version: Committing version data for tag: jgrpp-0.57.1 5 months ago
Loïc Guilloux 64611a7d12
Fix #11975, 27a920c: Running AIs also occupy a slot (#11976) 5 months ago
dP ff618230fe
Codechange: Replace magic value with a variable (#11980) 5 months ago
Peter Nelson 2fd9096070
Change: Decouple and remove landscape-dependent cargo types. (#11719)
Cargo types of default engines, industries and houses are now specified in terms of label.
5 months ago
Peter Nelson 83d63464db
Fix #11966: Scrollbar may be incorrect on first opening of text file window. (#11981)
The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
5 months ago
Loïc Guilloux 75015cdad2
Fix 6f6f099: Signals exist only on plain rail tiles (#11977) 5 months ago
Biswapriyo Nath 0937158499
Fix: [CMake] Link test executable with log library in Android (#11979) 5 months ago
Peter Nelson d9461e52af
Fix #11972: Incorrect minimum width allocated to graph. (#11974)
Width was based on actual number of data points instead of possible number of data points.
5 months ago
Jonathan G Rennison cb13ee90ef Fix: Second colour vehicle-type default liveries not being updated
When changing company default second colour
5 months ago
Tyler Trahan d5e936c9d4
Fix #11968: Always set string parameters to avoid undefined behavior (#11973) 5 months ago
Jonathan G Rennison b2b96fff13 Disable threaded rendering when showing widget outlines
Because these are drawn outside the window boundary, so it is not
technically thread-safe due to non-deterministic drawing order
5 months ago
Jonathan G Rennison 16589041f2 Prevent dragging plan lines across viewports
As this leads to erratic plans
5 months ago
Jonathan G Rennison d4381d06ea Revert "Add scoped helper to temporarily override current blitter"
This reverts commit ae701a3bd8.
5 months ago
Jonathan G Rennison 4a9803c6f0 Do not override global blitter to render overlay/plans to cache buffer
Creates thread safety issues with active draw jobs
5 months ago
Jonathan G Rennison 816d4eb657 Fix ff0c77ee: Wrong pitch used to fill in scrolled plan/overlay caches 5 months ago
Jonathan G Rennison 3365efa5b2 Ensure that sprite aligner click to pick sprites is thread safe
Use a mutex for list of sprite IDs found in (threaded) draw jobs
5 months ago
Jonathan G Rennison 736539280b Fix second colour vehicle-type default liveries not being updated
When changing company default second colour
5 months ago
Tyler Trahan d0c753465d Fix f6dd505: Remove unneeded error when switching between depot actions 5 months ago
Tyler Trahan 80a704ba11 Fix f6dd505: Split depot action tooltip by vehicle type 5 months ago
Jonathan G Rennison ff0c77ee3b Blitter: Do not override global screen pitch to use 8bpp blitter
8bpp blitter keep a point to pitch (default screen pitch)
5 months ago
Rubidium 7a740eefa0 Codechange: use std::unique_ptr for managing SaveLoadParams 5 months ago
Rubidium 4b372b6050 Codechange: use std::shared_ptr to manage saveload filters instead of manually trying to avoid double frees 5 months ago
Patric Stout 22eed9616e
Doc: Prepare for 14.0-beta1 release (#11964) 5 months ago
translators bc4ed9085d Update: Translations from eints
english (au): 3 changes by krysclarke
english (us): 3 changes by 2TallTyler
chinese (simplified): 3 changes by WenSimEHRP
korean: 4 changes by telk5093
russian: 19 changes by Ln-Wolf
latvian: 67 changes by lexuslatvia
portuguese: 3 changes by azulcosta
portuguese (brazilian): 3 changes by pasantoro
5 months ago
Jonathan G Rennison 539ca43525 Replace asserts with exits in GfxFillRect 5 months ago
kiwitreekor 16574946da Add: Station variable 6B to get extended station id of nearby tiles (#10953)
(cherry picked from commit 8d62a8f0f0)
5 months ago
Jonathan G Rennison 728971ddbc Road stops: Remove 0x6B as alias of roadstop_road_info_nearby_tiles 5 months ago
Jonathan G Rennison 28b156d95c Fix rounding of right edge of viewport mark dirty area
Could result in vehicles leaving pixels behind when moving left
5 months ago
Patric Stout 0dfba564ab
Add: "restart current" console command to regenerate the map based on current settings (#11963) 5 months ago
Jonathan G Rennison 41299128e5 Explicitly cast time units when calculating wait time in LoadUnloadVehicle 5 months ago
Peter Nelson 17d02ed45f
Feature: NewGRF properties to set town production effect and multiplier. (#11947)
Town production effect is modelled on town acceptance (growth) effect, and so takes an original cargo slot for behaviour instead of a direct value.

NewGRF feature 0x0B, property 0x1E, takes 1 byte.

Valid values are:
- 0x00 to behave like passengers
- 0x02 to behave like mail
- 0xFF to behave like other cargo (i.e. not produced.)

If not set, town production effect is set based on the cargo label ('PASS' or 'MAIL').

Town production multiplier allows adjusting the amount of cargo produces when Town Production Effect is set, without needing to use callbacks.

NewGRF feature 0x0B (cargo), property 0x1F, accepts a 2 byte (word) value, similar to the cargo capacity multiplier property. The default value is 256 which means 100%, i.e. normal rate.
5 months ago
Tyler Trahan f6dd5053a3
Feature: Order flag to unbunch vehicles at depot (#11945) 5 months ago
Jonathan G Rennison 2941567c02 Fix leftover strings in Korean translation
See: #642
5 months ago
TELK 1174794c82 Update: Korean translation up to 0.57.0 5 months ago
Jonathan G Rennison 04fc0c37dc Crashlog: Tag image base with [[maybe_unused]] 5 months ago
Jonathan G Rennison 7d92f185d3 Fix picker tool item selection in rail/road station and waypoint windows 5 months ago
glx22 48c97d6cde Fix 48b6b18: Increase MAX_VALUATE_OPS to match the previous limit
(cherry picked from commit a502453033)
5 months ago
Patric Stout a0c480c4e4
Change: "restart" now uses your newgame settings, where "reload" uses the current settings (#11962) 5 months ago
Charles Pigott 59f6c199bf
Fix #11528: Don't auto-build past tunnelbridge ends (#11606) 5 months ago
kiwitreekor 8d62a8f0f0
Add: Station variable 6B to get extended station id of nearby tiles (#10953) 5 months ago
Patric Stout 849fd5ae03
Change: [Script] replace easy/medium/hard values with default value (#11959) 5 months ago
Loïc Guilloux 27a920c4a8
Change: Allow to configure AI slots above max_no_competitors (#11961) 5 months ago
Patric Stout fe4494ec11
Change: only open story-book in center when a GS does it (#11916) 5 months ago
Patric Stout 59a046de9c
Fix: don't use non-owning string pointer in StringParameter (#11952)
The string pointer can become invalid before the reference is
dropped, causing out-of-bound access in windows like ErrorWindow,
or News that copy 10 or 20 parameters for their internals.

Co-authored-by: Jonathan G Rennison <j.g.rennison@gmail.com>
5 months ago
frosch b1718478c8 Codechange: Replace old non-standard attributes with C++17/20 standard attributes. 5 months ago
frosch 8a4f0c4b02 Codechange: Simplify error throwing/catching in squirrel compiler. 5 months ago
Jonathan G Rennison 66e57e6b2d Crashlog: Handle image relocation in MinGW BFD symbol lookup 5 months ago
Jonathan G Rennison d00424008f Crashlog: Adjust Linux stacktrace format when using BFD 5 months ago
Jonathan G Rennison a4c14171a7 Crashlog: Re-use BFD instances for the same object 5 months ago