mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix desync in headless mode with rides that create smoke particles
This commit is contained in:
committed by
Michael Steenbeek
parent
673a43b560
commit
040a0e58aa
@@ -30,7 +30,8 @@
|
||||
- Fix: [#9994] Game action tick collision during server connect and map load.
|
||||
- Fix: [#10017] Ghost elements influencing ride excitement.
|
||||
- Fix: [#10036] Do not allocate large chunks of memory for save file classification.
|
||||
- Fix: [#10106]: Ride circuits should not be used for modes that do not support it.
|
||||
- Fix: [#10106] Ride circuits should not be used for modes that do not support it.
|
||||
- Fix: [#10149] Desync in headless mode with rides that create smoke particles.
|
||||
- Improved: [#9466] Add the rain weather effect to the OpenGL renderer.
|
||||
- Improved: [#9987] Minimum load rounding.
|
||||
- Improved: [#10125] Better support for high DPI screens.
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
// This string specifies which version of network stream current build uses.
|
||||
// It is used for making sure only compatible builds get connected, even within
|
||||
// single OpenRCT2 version.
|
||||
#define NETWORK_STREAM_VERSION "21"
|
||||
#define NETWORK_STREAM_VERSION "22"
|
||||
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
|
||||
|
||||
static Peep* _pickup_peep = nullptr;
|
||||
|
||||
@@ -7399,6 +7399,11 @@ bool ride_has_adjacent_station(Ride* ride)
|
||||
bool ride_has_station_shelter(Ride* ride)
|
||||
{
|
||||
auto stationObj = ride_get_station_object(ride);
|
||||
if (network_get_mode() != NETWORK_MODE_NONE)
|
||||
{
|
||||
// The server might run in headless mode so no images will be loaded, only check for stations.
|
||||
return stationObj != nullptr;
|
||||
}
|
||||
return stationObj != nullptr && stationObj->BaseImageId != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user