Tulio Leao
0981b49e99
Fix #8957 : Error title missing when building w/ insufficient funds ( #13020 )
2020-10-01 23:19:34 -03:00
Matt
2a9796f2cc
Add more guards in network code
2020-08-11 15:56:09 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Duncan
50d22ededd
Create a hookable location checking function for actions ( #11860 )
...
* Create a hookable location checking function for actions
* Add location valid to a number of game actions
Actually pass the coordinates to the script
Use LocationValid on further game actions
Add further actions to the LocationValid. Update api
Update remaining actions to use LocationValid
* Fix bug with peep pickup
Adjust api
2020-06-16 20:57:11 +01:00
Duncan
3c89d5ec12
Fix #11490 . Crash with error message titles ( #11502 )
...
Error message titles for rides are composed from the ride name string id and therefore require passing the error message args.
2020-04-27 15:22:33 +02:00
Ted John
c67962577a
Rename __ENABLE_SCRIPTING__ to ENABLE_SCRIPTING
2020-04-26 14:35:08 +01:00
Ted John
d480fb8daa
Apply suggestions from code review
...
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com>
Co-Authored-By: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-04-26 14:35:07 +01:00
Ted John
e1c08defc8
Remove use of std::variant
2020-04-26 14:35:07 +01:00
Ted John
efcf9fd22a
Implement hooking game actions
2020-04-26 14:35:05 +01:00
Ted John
83fe0cf5c5
Implement strings for GameAction errors
2020-04-26 14:35:05 +01: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
Breno Rodrigues Guimarães
2479256bc1
Adjust Formatter function names according to coding style ( #11378 )
2020-04-20 18:55:15 -03:00
Breno Rodrigues Guimarães
d4a2a98e20
Replacing set_format_arg_on macro in favor of a more C++zy solution ( #11350 )
2020-04-20 07:10:33 +02:00
ζeh Matt
b86854a259
Fix #10587 : Update last action coordinates on correct player ( #10845 )
2020-02-28 16:23:41 +01:00
duncanspumpkin
164acc85cc
Rename sprites to newer style naming
2020-01-19 17:10:53 +00:00
Matt
ef4a3d0528
Fix #10489 : Hosts last action not being synchronized
2019-12-31 10:34:33 +01:00
Duncan
d486ac4d3b
Reduce direct usage of LOCATION_NULL ( #10480 )
...
* Reduce direct usage of Location_Null
Ideally we want to refactor these out to use std::optional as much as possible but for now move to using the standard interfaces.
* Remove incorrect AND with LOCATION_NULL
In the original this was a simple comparison to check for negative. Unsure how it ended up as an AND with the negative bit.
2019-12-31 09:01:17 +01:00
Matt
52ee9c6896
Use enum class for ExpenditureType
2019-12-22 20:51:55 +01:00
Duncan
3be7d824ac
Merge pull request #10397 from duncanspumpkin/refactor_gcommand
...
Remove gCommandPosition. Use GameActionRes instead.
2019-12-19 20:48:20 +00:00
Matt
fbe0506ca8
Add game action type to the assert in GameActions::ProcessQueue
2019-10-31 17:27:55 +01:00
Matt
0c11bbd4e7
Fix #9994 : Game action tick collision during server connect and map load
2019-10-05 13:09:21 +02:00
Matt
d6d480a31b
Fix desyncs because of GameActions ignoring the tick on client
2019-08-23 23:06:27 +02:00
Matt
769ed255f3
Refactor game action queue out of network into GameActions
2019-08-21 00:15:39 +02:00
Matt
8ab0ca4f8f
Fix DataSerialiser returning the wrong stream object
2019-07-27 16:06:26 +02:00
aw20368
8c20b635bd
Fix #9270 : Refactor money effect
...
Changed static functions to rct_money_effect member functions. GetStringId now returns std::pair.
2019-05-21 21:22:47 +02:00
Filip Gawin
6833da77e3
Simplify boolean expresions
2019-05-10 22:00:38 +02:00
ζeh Matt
181a722c3b
Fix game action errors not showing if no round trip was done ( #9175 )
2019-05-01 22:53:10 +02:00
Michael Steenbeek
42a1a8704d
Use empty() for vectors; clean up bool comparisons ( #9118 )
2019-04-20 20:39:47 +02:00
duncanspumpkin
356a0e5e91
Rework flags
2019-04-04 19:23:44 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
2090cbefae
Fix #8851 : Show only game action errors to the issuer.
2019-03-15 21:27:51 +01:00
Matt
6350a3b0b4
Fix nested query not working in paused game state.
2019-03-01 08:26:03 +01:00
Matt
92d73e2fab
Set last player position based on game action result.
2019-02-21 15:51:00 +01:00
Matt
a6c6d6ddc3
Update checks for when money is required.
2019-02-18 17:19:44 +01:00
Matt
21e4c52853
Use finance_check_affordability instead of CheckActionAffordability
2019-02-18 17:19:44 +01:00
Matt
2d78eace05
Use QueryInternal in ExecuteInternal.
2019-02-17 10:12:02 +01:00
Matt
00be865ff1
Use ExecuteNested/QueryNested instead of passing a parameter.
2019-02-15 16:32:11 +01:00
Matt
caa490642c
Refactor GameActions to allow non-top level actions.
2019-02-15 08:43:05 +01:00
Matt
ee00143f3a
Throw assert only in debug builds for missing game actions.
2019-02-07 18:23:58 +01:00
Matt
c7ab757a86
Cleanup.
2018-12-29 23:06:15 +01:00
Matt
14695e9b41
Fix game actions with ghost flags being recorded to replays.
2018-12-29 19:23:28 +01:00
Matt
5a8b611b83
Update.
2018-12-29 19:23:28 +01:00
Matt
df0cc72887
Add normalisation support to remove gaps.
2018-12-29 19:23:27 +01:00
Matt
bf8108c2d6
Lock game actions and commands to replay commands if replay is active.
2018-12-29 19:23:27 +01:00
Matt
a6efef1e81
Add support to record and replay game commands/actions.
2018-12-29 19:23:27 +01:00
Matt
4ff2dbd108
Automatically expose game action name via macro.
2018-12-20 22:20:58 +01:00
ζeh Matt
d88a9048f9
Fix #8431 : crash when game action logging is enabled. ( #8447 )
2018-12-15 18:41:55 +00:00
ζeh Matt
2da01caa1e
Fix #8338 : GAs using player id instead of index to log money spent. ( #8361 )
2018-12-05 07:39:57 +01:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
ζeh Matt
1abb31a159
Implement game action logging. ( #8138 )
2018-11-20 06:04:42 +01:00