Jonathan G Rennison
72a386abe5
Merge branch 'save_ext' into cargo_type_order
2016-09-06 22:09:50 +01:00
Jonathan G Rennison
a3d0fc5817
Remove an unused extern declaration, update comment.
2016-09-05 23:31:34 +01:00
Jonathan G Rennison
a6e0b1ac7d
Merge branch 'cpp-11' into save_ext
2016-09-05 23:17:02 +01:00
Jonathan G Rennison
871d26098e
Move Order::cargo_type_flags into a separately allocated object.
...
Change savegame format, add a new chunk for cargo_type_flags.
2016-09-05 00:12:48 +01:00
Jonathan G Rennison
c1c983ea16
Import cargo type orders patch
...
https://www.tt-forums.net/viewtopic.php?p=1047749#p1047749
Port to current trunk, resolve various conflicts, etc.
Adjust bit allocations for CmdModifyOrder.
Use save_ext framework for added order flags.
2016-09-04 23:00:10 +01:00
alberth
f286ba8db2
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
2016-09-04 16:06:50 +00:00
alberth
0b8869930f
(svn r27652) -Fix(r27650): Use the file operation being performed to set the _sl.action variable.
2016-09-04 15:10:41 +00:00
alberth
e735bbebce
(svn r27651) -Codechange: Introduce methods for setting the name and title of _file_to_saveload.
2016-09-04 12:58:04 +00:00
alberth
a959c0c965
(svn r27650) -Codechange: Replace SaveOrLoadMode by FileOperation and DetailedFileType.
2016-09-04 12:57:43 +00:00
alberth
c3bed437ee
(svn r27649) -Codechange: Introduce detailed file type enum, rebuild FiosType with it.
2016-09-04 12:57:20 +00:00
alberth
b6c29ae4eb
(svn r27639) -Codechange: Also always set the abstract FileToSaveLoad::filetype when setting a mode.
2016-09-04 12:47:39 +00:00
alberth
e78627f2f1
(svn r27638) -Codechange: Move FiosType enum, move and rename SetFiosType function.
2016-09-04 12:47:07 +00:00
alberth
b5eb50da7b
(svn r27637) -Codechange: Don't use _saveload_mode for scenario loading detection.
2016-09-04 12:46:29 +00:00
alberth
757bc0a97b
(svn r27636) -Codechange: Rename FileType to AbstractFileType.
2016-09-04 12:46:07 +00:00
alberth
a35e970ab0
(svn r27635) -Codechange: Move FileType and FileToSaveLoad structure definitions.
2016-09-04 12:45:40 +00:00
Jonathan G Rennison
e6c7134935
Merge branch 'master' into save_ext
...
# Conflicts:
# src/saveload/saveload.cpp
2016-09-02 22:21:28 +01:00
frosch
2337d169e8
(svn r27627) -Codechange: Deduplicate some cursor magic into SetMouseCursorBusy.
2016-08-15 18:32:48 +00:00
frosch
2de4652d09
(svn r27572) -Fix [FS#6442]: Convenience savegame bump to distinguish 1.6 savegames from 1.5 savegames.
2016-05-22 10:10:17 +00:00
frosch
fbd79d88f0
(svn r27518) -Update: Numbers
2016-03-01 20:00:22 +00:00
Jonathan G Rennison
1234bdb07c
Fix compilation issue with MSVC due to ordering of noreturn and cdecl.
2015-10-31 10:51:58 +00:00
Jonathan G Rennison
e606a847c6
Add an un-ordered chunk for extra company settings: PLYX.
...
This is similar to the PATX chunk.
Minor refactoring to enable some code sharing between two chunks.
Fix MakeSettingsPatxList always regenerating cache.
Update documentation of PATX chunk structure.
2015-10-25 21:35:40 +00:00
Jonathan G Rennison
d6395b97a7
Enable extended feature versions for saving to be set at run time.
2015-09-12 14:15:32 +01:00
Jonathan G Rennison
86dea90c4f
save_ext: Initial support for save/load of RIFF chunk sizes > 28 bits.
...
Add a chunk extension header with a flag for increased RIFF size.
2015-09-11 22:37:36 +01:00
Jonathan G Rennison
a8cc81d054
Initialiser list fixes for legacy compilers.
2015-08-16 14:36:07 +01:00
Jonathan G Rennison
e30d7c2164
Save/load ext: Fix SlXvSetCurrentState being called before AfterLoadGame().
2015-08-07 20:12:25 +01:00
Jonathan G Rennison
03b6c41c67
Add shorthand flag in SlxiSubChunkFlags for XSCF_IGNORABLE_UNKNOWN | XSCF_IGNORABLE_VERSION.
2015-08-05 21:31:17 +01:00
Jonathan G Rennison
047395c663
Remove unnecessary and buggy field-packing in struct SlXvFeatureTest.
2015-08-02 23:37:34 +01:00
Jonathan G Rennison
5d680d9154
Implement version setting in SlXvSetCurrentState
...
Call in ClearSaveLoadState
2015-08-01 18:03:07 +01:00
Jonathan G Rennison
bde094fe01
Initial implementation of SLXI chunk save/load
2015-08-01 12:58:53 +01:00
Jonathan G Rennison
a3980dc6ba
Move SlRead/SlWrite functions to saveload.h
...
Add SlGetBytesRead and SlGetBytesWritten functions.
2015-08-01 12:26:22 +01:00
Jonathan G Rennison
4508cfbf93
Add format-style versions of SlError and SlErrorCorrupt.
2015-08-01 12:26:22 +01:00
Jonathan G Rennison
17e8693e62
Initial stubs for extending the save/load version checking/upgrade code,
...
with support for tests on individually versioned features as well as
savegame versions.
This is mainly for improved handling of features added to patchpacks.
The current status-quo of picking a random number for the savegame
version when releasing a patch breaks loading of savegames from newer
trunk savegame versions, with or without the same patch applied, as
savegame upgrade code is not run, which can also lead to crashes on load.
Instead don't change the savegame version (but set the high bit to
keep trunk versions away), but instead include the versions of individual
features using a separate mechanism.
2015-08-01 12:26:22 +01:00
frosch
c5a4b89915
(svn r27320) -Codechange: Do not drop order backups when loading a savegame for replaying.
2015-06-27 11:46:41 +00:00
frosch
fa83524eb4
(svn r27291) -Fix (r27278) [FS#6303]: Some savegame data was discarded again during loading.
2015-05-21 18:59:11 +00:00
frosch
17d9b77db6
(svn r27278) -Fix: Handle savegames with an unexpected amount of industry-builder or NewGRF entity-mapping more gracefully.
2015-05-09 10:04:50 +00:00
frosch
c9e9dacc6b
(svn r27243) -Fix (r26816) [FS#6285]: Duplicate frees due to pool item classes not having copy constructors.
2015-04-23 20:07:07 +00:00
frosch
2edbc72ebd
(svn r27192) -Change: heading for 1.6 now
2015-03-17 20:33:44 +00:00
frosch
a14b836bf2
(svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects.
2015-03-07 18:27:01 +00:00
rubidium
0c2f4bdc2b
(svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces)
2014-10-15 18:31:37 +00:00
rubidium
660a95e5d2
(svn r27003) -Cleanup: fix the use of spaces and asterices "around" some comments
2014-10-12 18:41:53 +00:00
peter1138
39fa9d2127
(svn r26978) -Fix (r23609): Typo in game script warning message.
2014-10-08 16:34:52 +00:00
rubidium
b50c649405
(svn r26881) -Codechange: bump the savegame version
2014-09-21 11:28:29 +00:00
rubidium
ab3660278a
(svn r26880) -Add: stub settings for limiting bridge and map height
2014-09-21 11:27:34 +00:00
rubidium
dc2b4f2498
(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible
2014-09-21 11:24:51 +00:00
rubidium
f3b79480ed
(svn r26878) -Change: move m6 to TileExtended to keep Tile 8 bytes and thus better alignable
2014-09-21 11:23:33 +00:00
rubidium
173a234951
(svn r26876) -Codechange: move 'has bride above' data from m6 to type
2014-09-21 11:20:11 +00:00
rubidium
f82c07b582
(svn r26875) -Codechange: move TropicZone information from m6 to type
2014-09-21 11:18:10 +00:00
rubidium
337af973b0
(svn r26873) -Change: split type_height into a type and height array (ic111)
2014-09-21 11:14:58 +00:00
rubidium
3dfb423446
(svn r26872) -Change: give the disaster vehicles the same treatment as aircraft in r26866; make the ascend and descend if needed to cross high mountains (based on patch by ic111)
2014-09-21 11:12:42 +00:00
rubidium
39ded38c01
(svn r26866) -Change: make aircraft ascend/descend when they are too close to the ground or too far away (based on patch by ic111)
2014-09-21 06:35:34 +00:00