Commit graph

39 commits

Author SHA1 Message Date
Michał Janiszewski
010422c7da Load and save sprites to S6 explicitly 2016-07-18 00:23:33 +02:00
Michał Janiszewski
9f57c82653 Refactor access to g_sprite_list
Hide g_sprite_list behind accessor function with a check. `assert` is
temporarily disabled, as it breaks nearly every park.
2016-07-17 22:19:34 +02:00
Ted John
4de1f2912a remove unnecessary functions 2016-07-09 15:36:48 +01:00
Ted John
78c6b6a251 remove all unnecessary object resets 2016-07-08 22:58:38 +01:00
Ted John
e8635c1307 prepare for better object loading 2016-07-08 22:58:38 +01:00
Ted John
80381cfaa0 fix objects always been packed into saves 2016-07-08 22:58:38 +01:00
Michał Janiszewski
644a36a310 Fixes to -Wall compilation
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:

    -Wall -Wno-unused-but-set-variable -Wno-missing-braces \
    -Wno-unknown-pragmas -Wno-unused-function
2016-06-20 13:46:27 +01:00
X123M3-256
706b3db99e Chain lift cheat (#3818)
* Fix conflict with disable plant aging cheat

* Allow chain lift on any piece

* Keep chain toggled while building

* Ignore current chain lift state when cheat enabled

* Update string ids to one not already used

* Implement command for toggling cheat

* Allow chain on steep tracks when cheat is enabled

* Add checkbox for chain cheat

* Fix spacing

* Send cheat over network

* Change label for checkbox

* Replaced tabs with spaces
2016-06-07 22:08:38 +01:00
Ted John
a9bf0cdd4e fix #3811: Multiplayer Crash on join
Game was probably being updated with title sequence sprite spatial index.
2016-06-03 22:03:22 +01:00
Michał Janiszewski
4955279b7b Synchronise reset_0x69EBE4 over network
Clients calling reset_0x69EBE4 not in sync is a major cause of desyncs,
this change tries to force sync across clients
2016-06-03 00:33:15 +02:00
Goddesen
809e459495 Added cheat to disable plant aging 2016-06-03 00:33:15 +02:00
Ted John
8db0933ee2 fix loading of temperature from SV6 2016-05-28 23:11:57 +01:00
Ted John
25ac99e04a add variable for gS6Info 2016-05-20 23:26:19 +01:00
Ted John
a9e4ff98c0 fix #3572: scenario description not loaded for scenarios 2016-05-15 23:26:06 +01:00
janisozaur
feb140b84c Revert part of last commit unsuitable for older compilers (#3584)
Also initialise all the items in gResearchedTrackTypesA and
gResearchedTrackTypesB
2016-05-13 10:36:24 +01:00
janisozaur
87d05f8a89 Fix compiler warnings (#3583)
Includes:
* type casting
* properly counting fields to initialise
2016-05-13 08:05:12 +01:00
Ted John
1229cbd540 clean up s6 struct a bit 2016-05-11 22:30:25 +01:00
Ted John
56da56b374 add global for gPeepWarningThrottle 2016-05-11 22:30:24 +01:00
Ted John
30a044ae72 add globals for gWeeklyProfitAverage... 2016-05-11 19:41:34 +01:00
Ted John
0f1028c92c add global for gResearchedSceneryItems 2016-05-11 19:41:33 +01:00
Ted John
4298f416d2 fix #3558: safely read chunks from S6 files
It appears many saved games have been saved with excess uncompressed data that overflows the S6 structure. This may have been caused by a save bug in an earlier version of OpenRCT2. This will now cap the uncompressed data to the amount expected.
2016-05-10 21:39:12 +01:00
Ted John
aa929e1593 add globals for researched things, cleanup 2016-05-10 00:00:59 +01:00
Ted John
b5c0913b76 add global macros for a few more things, ride rating related and misc 2016-05-09 22:54:22 +01:00
Ted John
5162bc5a0e add global macro for a few ride variables and expenditure table 2016-05-09 22:11:56 +01:00
Ted John
3c3a37073d add global macro for gSamePriceThroughoutPark 2016-05-09 21:18:44 +01:00
Ted John
275f7c6723 add global macro for gCurrentExpenditure, gCurrentProfit 2016-05-09 21:12:01 +01:00
Ted John
3105d62d3b add global macro for gTotalAdmissions, gTotalIncomeFromAdmissions 2016-05-09 21:05:17 +01:00
Ted John
be2d1127f5 add global macro for gResearchLastItemSubject 2016-05-09 20:38:26 +01:00
Ted John
d2c5501eea refactor sprite heads and counts 2016-05-09 00:08:03 +01:00
Ted John
5ccfd83dea add global macro for gScenarioTicks 2016-05-08 23:20:42 +01:00
Ted John
c77311a113 small fix and refactor of S6Importer / Exporter 2016-05-08 23:16:25 +01:00
Ted John
9d7db70965 export variables individually 2016-05-08 22:35:12 +01:00
Ted John
2ab41b547a use S6Importer for network load game 2016-05-08 22:35:11 +01:00
Ted John
a86bc57a96 use S6Exporter for scenario_save 2016-05-08 22:35:09 +01:00
Ted John
4eb7a7ee0e add S6 exporter 2016-05-08 22:35:08 +01:00
Ted John
9a61d8c885 add importing of scenarios 2016-05-08 22:35:07 +01:00
Ted John
3bb1d47813 use new S6Importer for loading saved games 2016-05-08 22:35:06 +01:00
Ted John
30467a1467 copy over game variables and refactor a few 2016-05-08 22:35:05 +01:00
Ted John
3557c7c8eb add S6 importer and chunk loading 2016-05-08 22:35:05 +01:00