ZehM4tt
1b2a61c6ba
Separated out byte swapping into its own header.
...
Simplified data serialisation of game actions.
Moved the flags away from parameters.
GameAction base now serialises mandatory data such as flags and player.
Split some functions from network in order to move command processing to the end of tick.
2017-10-05 10:42:43 +02:00
Michał Janiszewski
60e72e6dbc
Mark GameAction methods as overriding
2017-10-05 10:42:43 +02:00
Michał Janiszewski
2aa7924b30
Add required virtual destructor to IGameAction
2017-10-05 10:42:43 +02:00
ZehM4tt
f20a6863cd
Simplified registration of game actions and avoid duplicate code.
2017-10-05 10:42:43 +02:00
duncanspumpkin
149a854c51
Make changes to match @ZehMatt code
2017-10-05 10:42:39 +02:00
duncanspumpkin
a7d1cbee9e
Add deep copy to GameCommand
2017-10-05 10:42:39 +02:00
Michał Janiszewski
634683d891
Mark GameActions::Register as static
2017-10-05 10:42:39 +02:00
duncanspumpkin
fd00096b3b
Fix tabs spaces
2017-10-05 10:42:39 +02:00
duncanspumpkin
205a1c9e12
Depreciate game command. Fix error messages
2017-10-05 10:42:39 +02:00
Michał Janiszewski
5103113740
Mark Factory variables as maybe_unused
2017-10-05 10:42:38 +02:00
duncanspumpkin
1d3076a2af
Initial attempt at getting place entrance into game action
2017-10-05 10:42:38 +02:00
duncanspumpkin
8adcbd6e35
Fix warning
2017-10-05 10:42:38 +02:00
duncanspumpkin
feef3d98da
Refactor packet handling
2017-10-05 10:42:38 +02:00
Duncan
f8241b7bb0
Fix no network builds
2017-10-05 10:42:38 +02:00
duncanspumpkin
df5ea16026
Change function declarations. Move network code into network
2017-10-05 10:42:38 +02:00
Ted John
8f362cef8c
Fix spaces / tabs for network.h and network.cpp
2017-10-05 10:42:38 +02:00
Ted John
fae45d6989
Fix warning
2017-10-05 10:42:38 +02:00
duncanspumpkin
254041985f
Make servers work
2017-10-05 10:42:38 +02:00
duncanspumpkin
ae24ded8bf
Make client work
2017-10-05 10:42:38 +02:00
duncanspumpkin
351b0df76b
Initial try at adding networking
2017-10-05 10:42:38 +02:00
duncanspumpkin
e7c66bb208
Start adding network code
2017-10-05 10:42:38 +02:00
Ted John
c483c319fc
Make dummy global static
2017-10-05 10:42:38 +02:00
Ted John
bb4a482bfc
Start writing new game action execution
2017-10-05 10:42:38 +02:00
Ted John
33397005b0
Add tag and flags to game action
2017-10-05 10:42:38 +02:00
Ted John
c89a00badd
Write initial new game action infrastructure
2017-10-05 10:42:38 +02:00
Olivier Wervers
a75d727685
Implement #5826 : Add command to show map data counts and limits
2017-10-05 10:00:32 +02:00
ZehMatt
5aa8ae5c6e
Fix viewport coordinates being set too late.
...
Fix headless always sending 0,0 viewport coordinates.
2017-10-05 09:57:08 +02:00
Jeroen D Stout
e2523a3d8d
Make sprite export start at 0 to correspond with in-game sprite id
2017-10-04 19:49:25 +02:00
Michael Steenbeek
05b274a239
Fix #5609 : Vehicle switching may cause '0 cars per train' to be set
2017-10-04 19:42:44 +02:00
Michael Steenbeek
055ecccf36
Clean up more track flags
2017-10-04 17:14:53 +02:00
Olivier Wervers
d47f758b0e
Fix #6118 , #6245 , #6366 : Tracked animated vehicles not animating
2017-10-04 14:51:48 +02:00
Tyler Ruckinger
d33803b5d0
Ensure title sequence user data path exists
2017-10-03 09:32:11 +02:00
Gymnasiast
e6faf6b7c4
Fix #6201 , #6250 : custom RCT1 scenarios cause empty scenario list entry
...
The scenario repository did not correctly handle custom RCT1 scenarios.
They were not listed, but if they existed, an empty entry would appear in the scenario list.
This fixes both issues, and also prints a warning message, should this ever happen again.
2017-10-03 07:48:02 +02:00
ZehMatt
5f076e8103
Compile paint code as cpp.
...
Style fixes.
2017-10-02 21:42:11 +02:00
Michael Steenbeek
0fb5f186ee
Do not hardcode music length
2017-10-02 21:40:49 +02:00
Olivier Wervers
45944cb037
Fix #6202 : Avoid breaking occupied benches
2017-10-02 17:18:51 +02:00
Michael Steenbeek
ccefc98491
RCT1 theme: make Options and Shortcut windows brown
2017-10-02 11:45:28 +02:00
LRFLEW
11cdcea72b
Fix RCTC g1.dat rendering issues
2017-09-30 19:18:31 -05:00
Olivier Wervers
1de4b2650b
Fix #6229 : Scenery costs nothing in track designs
2017-09-30 00:11:14 +02:00
Michael Steenbeek
0c4d184a9a
Use constants for map elements and the scenery window
2017-09-29 20:25:17 +02:00
Olivier Wervers
f2c9fc58d5
Implement #1329 : Add remove-unused-objects command ( #6324 )
2017-09-29 16:32:30 +02:00
LRFLEW
e177811115
Add RCTC g1.dat support
2017-09-29 10:44:23 +02:00
Michael Steenbeek
b2968ce8b0
Fix #6320 : Crash when CSS1.DAT is absent
2017-09-29 10:43:47 +02:00
Michael Steenbeek
eea40edf0a
Use more constants
2017-09-29 10:06:05 +02:00
Michał Janiszewski
5ab9f938a7
Update files missed in the great extern "C" cleanup of 2017
2017-09-28 23:29:16 +02:00
Gymnasiast
6c9e73bff2
Allow loading objects from RCTC
...
These are technically same as those from RCT2, but with a .POB extension, rather than .DAT
2017-09-28 21:42:58 +02:00
Jeroen D Stout
71317c5f7a
Adapt to coding convention
2017-09-28 17:37:48 +02:00
Jeroen D Stout
35b9038807
Refactor adjacency distance constant + loop fix
2017-09-28 17:37:48 +02:00
Jeroen D Stout
3b7ec7daa1
Alllow check_for_adjacent_station to check farther
2017-09-28 17:37:48 +02:00
Jeroen D Stout
a6993bdb9f
Introduce constant for max adjacency distance
2017-09-28 17:37:48 +02:00