Commit Graph

51123 Commits

Author SHA1 Message Date
Jonathan G Rennison
3392d25aa3 Merge PR #274 into jgrpp 2021-06-15 02:01:22 +01:00
Jonathan G Rennison
1cc8053003 Add setting to control station rating tooltip detail level
Default to simple
2021-06-15 02:00:58 +01:00
Jonathan G Rennison
e7909b4bee Use {PLUS_NUM} in station rating tooltip strings 2021-06-14 22:55:39 +01:00
Jonathan G Rennison
8485ed724b Add {PLUS_NUM} string code which includes leading + for positive values 2021-06-14 22:55:26 +01:00
Jonathan G Rennison
2b8775fb4a Avoid hard-coded percentage values in station rating tooltip strings 2021-06-14 22:52:22 +01:00
Jonathan G Rennison
2cd1740c01 Merge PR #268 into jgrpp 2021-06-14 00:53:59 +01:00
Jonathan G Rennison
fd4b5cc083 Add buttons to cargo payment graph to select x-axis
Save in misc settings
2021-06-14 00:52:46 +01:00
Jonathan G Rennison
f438daa0bc Use localised units for payment graph X axis
Match quantities in graph title
2021-06-13 23:57:14 +01:00
Jonathan G Rennison
f786b372c0 Add function for speed unit conversion to unit values 2021-06-13 23:50:06 +01:00
Jonathan G Rennison
8e27202524 Add strings for velocity unit names 2021-06-13 20:49:35 +01:00
Jonathan G Rennison
229f856327 Merge PR #275 into jgrpp 2021-06-13 11:50:54 +01:00
Andreas Schmitt
da4de2c959 Improve lake generation
Prior to this change, lakes could be very small and could also not be deactivated.

This change allows the deactivation of lake creation and the lake size is now the set size +- 25% instead of anything between 0 and lake_size.
2021-06-13 08:15:43 +02:00
Andreas Schmitt
99e32488f2 Add creation of wide rivers 2021-06-13 07:36:41 +02:00
Andreas Schmitt
92dad745c9 Fix a small bug 2021-06-13 06:20:51 +02:00
Andreas Schmitt
ae31da8c82 Correct maximum ratings in strings 2021-06-13 06:14:35 +02:00
Andreas Schmitt
c4c2fedbb1 Refactor station rating and tooltip - multiply vehicle age check by 10 2021-06-13 06:03:03 +02:00
Andreas Schmitt
edf0e8eddd Remove unused code an cleanup more 2021-06-13 03:08:04 +02:00
Andreas Schmitt
2801527895 Cleanup the code a bit 2021-06-13 02:54:57 +02:00
Andreas Schmitt
120149cf99 Add initial implementation from Joker's patch 2021-06-13 02:48:40 +02:00
Jonathan G Rennison
384e8cca89 Fix infra signal total when moving signalled tunnel/bridge to other company
When signal spacing setting differs
2021-06-12 23:41:32 +01:00
Jonathan G Rennison
ad0e085ec7 Fix off by one error in Packet::CanWriteToPacket 2021-06-12 22:47:29 +01:00
Jonathan G Rennison
e5696e6b5a Fix owner legend colours when gui.starting_colour setting used 2021-06-12 02:26:34 +01:00
Jonathan G Rennison
99d11c482a Merge PR #271 into jgrpp 2021-06-12 00:31:47 +01:00
Jonathan G Rennison
1002c6d9d2 Fix various compiler warnings
See: #267
2021-06-11 22:54:27 +01:00
Andreas Schmitt
758d71716e Merge pull request #1 from JGRennison/jgrpp
Synchronize with forked repository
2021-06-11 23:13:01 +02:00
Andreas Schmitt
5e3a244198 Add topography and industries screenshot types 2021-06-11 20:14:56 +02:00
Jonathan G Rennison
97d5982cb5 Fix various compiler warnings
See: #267
2021-06-11 00:39:24 +01:00
Jonathan G Rennison
24783c3d26 Tracerestrict: Fix speed unit conversions in GUI 2021-06-11 00:39:24 +01:00
Patric Stout
5b50ae72f8 Fix #9348, 4d74e51: don't try to sell shares of spectators (#9349)
"new_owner" can be INVALID_OWNER, and as INVALID_OWNER ==
COMPANY_SPECTATORS, we could end up trying to sell shares of
nobody.

(cherry picked from commit ef25afd55a)
2021-06-10 23:21:42 +01:00
Jonathan G Rennison
7aa63e9726 Update status bar sizing when changing date/time display settings 2021-06-10 22:12:10 +01:00
Jonathan G Rennison
8450f0a248 Fix width of status bar time/date section 2021-06-10 22:11:59 +01:00
Jonathan G Rennison
704eac8220 Fix changing font zoom level not updating font height cache 2021-06-10 21:37:27 +01:00
Jonathan G Rennison
6936fe4f6e Settings GUI: Move day length factor to environment section 2021-06-10 21:23:32 +01:00
Andreas Schmitt
0acdea2852 Shows payment based on average transit speed
Prior to this change, the charts were pretty useless. They indicated at most what cargos were speed sensitive and which ones were not.

This change lets the graph show the average transit speed to profit mapping. With this graph it becomes obvious after exactly what speed any further speed increase brings no further profit. This makes train selection way easier.
2021-06-10 11:43:28 +02:00
Jonathan G Rennison
a7d8c6fe0c Add PF setting for whether to pathfind up to back of one-way PBS 2021-06-09 20:43:57 +01:00
Jonathan G Rennison
d8d01276c5 Merge pull request #266 from telk5093/jgrpp
Update: Korean translation for v0.41.3
2021-06-08 20:10:59 +01:00
TELK
56e261e904 Update: Korean translation for v0.41.3 2021-06-08 12:00:03 +09:00
Jonathan G Rennison
fb8ef7dc93 Version: Committing version data for tag: jgrpp-0.41.3 2021-06-07 20:45:50 +01:00
Vít Šefl
a73ddf4a35 Fix: Do not send vehicles towards incomplete PF nodes
YAPF could end up in a situation where it sets the best intermediate node
to a node whose construction is never finalized (i.e. it is never added to
the open list). The content of the node would be overwritten in the next
round, potentially sending the vehicle to an unwanted location.

(cherry picked from commit 0125ba82e8)
2021-06-07 18:37:06 +01:00
Patric Stout
ab74800b8e Change: by default, make "unload all" leave stations empty (#9301)
(cherry picked from commit 7648483364)
2021-06-07 18:36:35 +01:00
glx22
da8d18d052 Change: Unhide Ctrl effect for group replace protection
(cherry picked from commit e99352a5d9)
2021-06-07 18:32:13 +01:00
Vít Šefl
073b15f453 Fix: Encountering two-way red signals could prune unrelated branches.
The intermediate node branch is now only pruned if the node is on the
path leading to the two-way red signal.

(cherry picked from commit 33d99d27f4)
2021-06-07 18:31:24 +01:00
Michael Lutz
5be60d03a9 Fix: [OpenGL] Increase timeout when waiting for the GPU to be done with the drawing buffer.
The old timeout could be too short if v-sync was on on lower refresh rates.

(cherry picked from commit 97722931a9)
2021-06-07 18:28:10 +01:00
rubidium42
26bcb7762f Fix: part of a tile might not be marked dirty upon terraforming
(cherry picked from commit eaa3df1e8e)
2021-06-07 18:26:24 +01:00
Patric Stout
2b5ff44020 Fix #9281: acquire a company uses special bookkeeping to make you rich (#9300)
When you buy-out a company, you got your shares back. This is
based on company-value, which includes values for the vehicles etc.
In other words, you not only got the vehicles, but you also got
paid to get them back.

Additionally, you also got the loan of the company, but not the
money for the loan (as that is subtracted from the company-value).

Solve this by changing the rules of a buy-out: don't sell your
shares, get the loan AND the balance and get the infrastructure.

(cherry picked from commit 4d74e51907)
2021-06-07 18:26:03 +01:00
rubidium42
cf95cb2639 Fix #9316, 64eddaeb: at about 250.000 inhabitants the bridge length limit check overflows
(cherry picked from commit 4613ababd3)
2021-06-07 18:25:20 +01:00
Jonathan G Rennison
c0bb428e9e Fix vehicle sprites not being updated when moving viewport
When move is instantaneous and old and new viewport rects do not overlap
2021-06-07 18:08:51 +01:00
Rubidium
68217b4568 Cleanup: [Fluidsynth] Remove fluid_player_join
The function fluid_player_join in the library is broken beyond compare for the
usecases it was used for (see their #872). It does not wait until it is safe
to delete the player, so it is up to the end user to ensure that.

For OpenTTD we acquire a lock before fluid_synth_write_s16 and we acquire the
same lock in the stop function. So, only one of the functions can be doing its
thing, meaning we do not need to wait for the player to be stopped as it
cannot be doing anything as we prevent that by the lock.

(cherry picked from commit 79fc094c54)
2021-05-30 22:09:54 +01:00
PeterN
d274a81d3f Fix: Apply unscaled padding to Viewport inside WWT_INSET. (#9219)
Since pixel dimensions in SetPadding() are scaled by GUI size, padding for inset viewports was excessive.

Instead, automatically apply padding for WWT_INSET at widget level. This applies to all widgets inside a WWT_INSET, which in all instances is a NWID_VIEWPORT.

(cherry picked from commit 330a305c99)
2021-05-30 22:06:56 +01:00
Jonathan G Rennison
fe64093cc0 Avoid reading non-32bpp sprites twice where possible
Try to avoid unnecessary over-reading
2021-05-30 22:02:14 +01:00