1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00
Commit Graph

433 Commits

Author SHA1 Message Date
Matt
ab48c00a89 Fix client being stuck on empty object list 2020-07-25 15:23:26 +02:00
Matt
241ff111dd Address reviews 2020-07-25 14:10:01 +02:00
Matt
6c40d9f3d5 Fix formatting 2020-07-24 23:11:28 +02:00
Matt
e31317e025 Rename function to be consistent 2020-07-24 23:11:28 +02:00
Matt
d230bc8914 Bump up network version 2020-07-24 23:11:28 +02:00
Matt
908090104a Send client heartbeats to keep connection alive 2020-07-24 23:11:28 +02:00
Matt
1eedaf32dd Refactor sending the object list including status reporting 2020-07-24 23:11:28 +02:00
Matt
8ef5d0e838 Rename some things to clarify purpose, add constant for map requests 2020-07-24 23:11:12 +02:00
Aaron van Geffen
7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
frutiemax
a961d9784f Part of #12243: Use coords for MazeRemoveTrack (#12251) 2020-07-15 23:34:26 -03:00
Jim
0248621502 Increase handyman randomness in queue (#12145)
* Increase randomness when handyman is on queue path

* Add myself to contributors

* Refactor hex variable probabilities

* Add check if queue is connected to a ride

* Update changelog

* Bump network version

* Update replays

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-07-08 19:48:08 +01:00
Gymnasiast
7cc510f6b7 Increment network version 2020-07-07 21:14:16 +02:00
frutiemax
bee0b4b82d Part of #11159: Optimize util_zlib_deflate return (#12111) 2020-07-04 09:21:50 -03:00
frutiemax
26ae2dbf04 Part of #11437: Move PlatformFileExists to Platform2.h (#12077) 2020-07-02 12:03:31 -03:00
Gymnasiast
2ee21e360c Bump network version 2020-06-17 21:46:54 +02:00
Irrelevant Irreverent
db85f0c78b Bump network version 2020-06-16 09:08:04 -04:00
Duncan
b3d77dd6c9 Remove banner entry when deleting tiles with tile inspector (#11880) 2020-06-11 23:42:48 +02:00
Michael Steenbeek
9ef8d6da42 Convert most remaining C-style casts to C++-style ones (#11867) 2020-06-07 23:18:11 +02:00
tylerleamon
51872f9741 Fix #10634: Guests are unable to use uphill paths out of toilets
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-05-22 19:58:38 +02:00
Duncan
79dda7260a Fix #11695. Mechanics walking to 0,0 on entrance only (#11704)
Mistake made when refactoring that meant that null locations were converted into tile 0, 0. I've fixed the general case but it is preferred to try avoid using null states for coordinates if at all possible.
2020-05-11 20:28:40 +02:00
Hummel95
aac55d2cc0 Fix #10876: Peeps spawns can stack and are not removable (#11155) 2020-05-09 16:17:08 +02:00
Michael Steenbeek
3ceecb33f0 Fix #11676: Spiral Roller Coaster has regular lift hill available (#11681) 2020-05-09 13:23:55 +02:00
tylerleamon
30e6b475a9 Fix #5451: Guests scream on every descent, no matter how small 2020-05-01 22:05:52 +02:00
Michael Steenbeek
fc860e8b6e Merge pull request #11521 from Gymnasiast/refactor/oein3
Make ResearchItem use ObjectEntryIndex
2020-05-01 13:28:21 +02:00
Michael Steenbeek
7895a6911e Bump network version 2020-05-01 13:28:11 +02:00
Ted John
3d2a534d3b Fix formatting 2020-04-30 17:12:02 +01:00
Gymnasiast
ba66751d35 Bump network version 2020-04-30 12:59:34 +02:00
Ted John
ee8a1a86c1 Add comments and null check 2020-04-30 02:18:32 +01:00
Ted John
7897df140d Update src/openrct2/network/Network.cpp
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
2020-04-30 02:14:33 +01:00
Ted John
f642597098 Replace loop with std::find_if 2020-04-30 01:54:12 +01:00
Ted John
297fe537b6 Implement network.sendMessage(msg, players) 2020-04-28 22:02:14 +01:00
Ted John
d0154d08e9 Implement network join / leave hooks 2020-04-28 19:33:30 +01:00
Ted John
1f39ac014a Run network.chat hook for server chat messages 2020-04-28 17:31:12 +01:00
Ted John
ecce4da6e8 Add ipAddress and publicHashKey properties to player API 2020-04-27 20:50:56 +01:00
Ted John
3c02861c63 Increment network version 2020-04-26 16:01:40 +01:00
Ted John
c67962577a Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING 2020-04-26 14:35:08 +01:00
Ted John
2f525e0539 Apply more code review comments 2020-04-26 14:35:07 +01:00
Ted John
4e4379e6ef Start work on custom game actions 2020-04-26 14:35:05 +01:00
Ted John
2890faee0a Change plugin type to just local and remote 2020-04-26 14:35:03 +01:00
Ted John
bac91cd563 Allow scripting to be compile-disabled 2020-04-26 14:35:03 +01:00
Ted John
a5c8ff920f Add game mutable protection 2020-04-26 14:35:03 +01:00
Ted John
dc64d3541d Transfer server-client scripts over network 2020-04-26 14:35:03 +01:00
Ted John
c8fbc2e529 Improve chat subscription 2020-04-26 14:35:01 +01:00
Ted John
098348d3c3 Add hooking for chat message 2020-04-26 14:35:01 +01:00
Breno Rodrigues Guimarães
ab53ddf59f Avoid fast-forwarding peep into the ride
The code being removed in the patch tries to fast forward a peep into the ride when it is the second peep for a vehicle that is used in pairs. Problem is that funds checking does not happen, so it happens that a peep may pay against its will.
Lets say a rich peep enters in line and a poor peep enters in line right after.
If the price of the ride is such that the rich peep can pay and the poor peep can't, it will be dragged into the ride because funds checking only happened for the first.
The second part of the patch just adjusts we consider the vehicle a full car if the second position is filled.

Add test to verify that a peep is not dragged into a ride it can't pay

This test puts two peeps in a Ferris Wheel. The first peep is rich and the second peep is poor. When they are both in line, the ride price is raised so that the poor peep can't pay.
Make sure the poor peep turns back and leaves the ride.

During development, a mistake in the logic would have broken all rides other than ferris wheels in a way that multiple guests could enter the same car.
Also add a test to make sure that is never broken.
2020-04-25 18:27:33 -03:00
Kevin Strehl
5456899afc Close #10572: Add cheat to allow building at invalid heights 2020-04-25 01:07:36 +02:00
Michael Steenbeek
62482312fb Bump network version 2020-04-23 14:44:23 +02:00
Michał Janiszewski
2323cc1596 Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Michał Janiszewski
de51d97f70 Remove redundant unreachable breaks 2020-04-21 13:31:01 +02:00
Breno Rodrigues Guimarães
2479256bc1 Adjust Formatter function names according to coding style (#11378) 2020-04-20 18:55:15 -03:00