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
)
3 years ago
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
)
3 years ago
Jonathan G Rennison
fe64093cc0
Avoid reading non-32bpp sprites twice where possible
...
Try to avoid unnecessary over-reading
3 years ago
Jonathan G Rennison
f212332359
Inline fast case for random access file byte/word/dword read
3 years ago
Jonathan G Rennison
054c820521
Implement custom sprite detection with new sprite mechanism
3 years ago
rubidium42
2b014ba1d9
Fix fdc11a9: Missing sprite count determined on the wrong file
...
(cherry picked from commit de940b1dbc
)
3 years ago
Rubidium
e227bbaff0
Cleanup: remove the old FIO slot functions
...
(cherry picked from commit fa6abe1646
)
3 years ago
Rubidium
eecf7c8525
Codechange: let NewGRF make use of SpriteFile instead of most of the FIO slot functions
...
(cherry picked from commit 10e35ca8e4
)
3 years ago
Rubidium
6bd12e24d7
Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality
...
(cherry picked from commit fdc11a9f94
)
3 years ago
Rubidium
04b38dbfca
Codechange: lets music make use of RandomAccessFile instead of the FIO slot functions
...
(cherry picked from commit 0dd339ecd8
)
3 years ago
Rubidium
525f6adcd0
Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions
...
(cherry picked from commit c097bc9d7d
)
3 years ago
Rubidium
4b37044ef1
Codechange: use the new RandomAccessFile as backend for the FIO slot functions
...
(cherry picked from commit b144e56b2c
)
3 years ago
Jonathan G Rennison
98e9a3991b
Increase RandomAccessFile::BUFFER_SIZE to 4096
3 years ago
Rubidium
e856ca7b69
Add: concept of a RandomAccessFile to replace the FIO slot functions
...
(cherry picked from commit 8e0b1b5d1a
)
3 years ago
Rubidium
2606f5409a
Fix: leaking file descriptors
...
(cherry picked from commit 495d73a67f
)
3 years ago
Rubidium
7c4d803265
Fix: memory leak due to assigning result of strdup to a std::string
...
(cherry picked from commit 296194ad36
)
3 years ago
Jonathan G Rennison
bf87578173
Fix #264 : Crash before calling SDL_SetTextInputRect with no window focused
3 years ago
rubidium42
62e3bfd684
Fix #9243 : [Network] For a dedicated server use a fallback client and server name
...
Also warn when the client or server name has not been set and provide pointers on how to set them
(cherry picked from commit 0968d009c8
)
3 years ago
Jonathan G Rennison
f703e23322
Fix assert fail when ChooseTrainTrack called on disallowed 90 degree turn
3 years ago
Jonathan G Rennison
c0bf8476b1
Tracerestrict: Fix PBS entry signal conditional with signalled tunnel/bridges
3 years ago
Jonathan G Rennison
0579c8755c
Add tracerestrict action: No PBS signal back PF penalty
3 years ago
Jonathan G Rennison
112b235b71
Fix name prefix of TraceRestrictNewsControlField enum values
3 years ago
Jonathan G Rennison
f2aa034a58
Merge pull request #261 from telk5093/jgrpp
...
Update: Korean translation for v0.41.2 + a
3 years ago
TELK
6113fd9bf0
Update: Korean translation for v0.41.2
3 years ago
TELK
81da69e278
Update: Korean translation for STR_CHEAT_TOWN_RATING
3 years ago
Jonathan G Rennison
06d92a97b6
Merge pull request #259 from unbeatable-101/jgrpp
...
Add installation instructions
3 years ago
Jonathan G Rennison
903ca18c01
Version: Committing version data for tag: jgrpp-0.41.2
3 years ago
Jonathan G Rennison
900a93ac59
Debug: Add sprite dumping to vehicle debug windows
3 years ago
Jonathan G Rennison
6f10b01ba2
Debug: Add general mechanism to dump a sprite group chain
3 years ago
Jonathan G Rennison
12e00624ba
Debug: Fix scrollbar count and logged end marker in extra info only mode
3 years ago
Jonathan G Rennison
5d8f459066
Debug: Add button to debug window to log contents to console
3 years ago
Jonathan G Rennison
30409192f0
Fix f5183807: Tree planting scaling on extra large maps
3 years ago
PeterN
f5183807fe
Fix #9242 : Tree tick handler did not scale by map size. ( #9246 )
...
This means that random tree generation density is higher on small maps and lower on large maps. This difference is enough to make the Lumber Mill impractical to use on large maps.
This change skips ticks on maps smaller than 256x256 and increases iterations or shortens the interval on maps larger than 256x256.
(cherry picked from commit b972ed8604
)
3 years ago
frosch
c2fce47340
Fix #9256 , 12e43c697d2: invalid read after free. ( #9258 )
...
This also changes ScriptEventVehicleAutoReplaced when replacing wagons:
The event is now only spawned, if the head engine changes, so only if the VehicleID of the consist changes.
Previously replacing wagons spawned an event with OldVehicleID==NewVehicleID.
(cherry picked from commit 5bd8144853
)
3 years ago
PeterN
dcb0cc2c52
Fix #9186 : Fix incorrect bounding box height causing station sprite glitch. ( #9187 )
...
Increased height of small station building bounding box to cover the build rather than just the platform.
(cherry picked from commit ba193f2e23
)
3 years ago
PeterN
8677a2a4a2
Fix #9063 : Caption of news window incorrectly aligned. ( #9252 )
...
(cherry picked from commit 7b7dbbc935
)
3 years ago
Jonathan G Rennison
6d3a1935a0
Fix "(undefined string)" message when SlError called when saving
3 years ago
Jonathan G Rennison
66289bbda4
Log packet size parse failures in NetworkTCPSocketHandler
3 years ago
Jonathan G Rennison
6d58115458
Net: Log sent and received game packets with type and status names
3 years ago
Jonathan G Rennison
7677d2d01a
Fix mishandling of PACKET_SERVER_MAP_BEGIN queuing at server
...
This could result in broken packet framing in the TCP stream
3 years ago
Jonathan G Rennison
7c706923f8
Fix a15e26f3: Leftover debugging statement
3 years ago
Jonathan G Rennison
31aec93cca
Fix leftover strings in Frisian language
3 years ago
Jonathan G Rennison
3ecda2b735
Fix handling of SlError when called from game thread
3 years ago
Jonathan G Rennison
a8157770df
Add fast path to vehicle var 0x42 if only upper byte is required
3 years ago
Jonathan G Rennison
aa0c1ba2e0
Only update vehicle image when in the vicinity of a viewport
...
This reduces the performance impact of expensive NewGRF
graphics chains.
3 years ago
Jonathan G Rennison
3e8ee4f49f
Remove "Disable vehicle image update" setting
3 years ago
Milek7
7ab6ab7400
Fix: missing <limits> include in network/core/packet.h ( #9123 )
...
(cherry picked from commit a341852cd5
)
3 years ago
Jonathan G Rennison
55915d8d55
Elide vehicle random trigger callbacks
3 years ago
Jonathan G Rennison
6ea97d6068
Viewport: Cache viewport areas for use in MarkAllViewportsDirty
3 years ago
Jonathan G Rennison
a15e26f369
NewGRF: Elide unmasked vehicle callbacks where possible
...
This includes:
* CBID_VEHICLE_32DAY_CALLBACK
* CBID_VEHICLE_REFIT_COST
* CBID_VEHICLE_MODIFY_PROPERTY
This is on a per-property basis
The main benefit of this is to avoid callbacks not handled by the
vehicle's current sprite group from using the full graphics chain as
the "default" branch in the callback switch.
In the case where the graphics chain is long/expensive, a lot of work
had to be done before a callback failure result was eventually returned.
3 years ago