Jonathan G Rennison
6a3ceb3e01
Document tracerestrict bit in landscape HTML docs.
2016-09-18 12:51:40 +01:00
Jonathan G Rennison
021b72490f
Mark SpringPP imports as fake extended savegame versions.
2016-09-13 22:58:00 +01:00
Jonathan G Rennison
e844b82d9e
Use vector instead of list for Station::loading_vehicles.
2016-09-13 22:58:00 +01:00
Jonathan G Rennison
95aad35774
Instead of list use deque in FlowRiver, vector in StationViewWindow.
2016-09-13 22:58:00 +01:00
Jonathan G Rennison
a422cb6753
Use a deque instead of list for CargoPacketList and StationCargoPacketMap.
2016-09-13 22:58:00 +01:00
Jonathan G Rennison
ae8e19cf9a
Merge branch 'save_ext' into jgrpp
2016-09-13 22:57:08 +01:00
Jonathan G Rennison
d124089d29
Add extended version tag and feature versions to output of -q.
2016-09-13 22:56:17 +01:00
Jonathan G Rennison
94d3700f79
SaveLoad: Add support for saving/loading from a std::vector<T *>
2016-09-13 22:56:16 +01:00
Jonathan G Rennison
c752da3a9e
SaveLoad: Add support for saving/loading from a std::deque<T *>
2016-09-13 22:56:16 +01:00
Jonathan G Rennison
27ee2da1f7
Merge branch 'cpp-11' into save_ext
2016-09-12 23:31:19 +01:00
Jonathan G Rennison
13fb737bed
Add a template parameter for the inner container of MultiMap.
2016-09-12 23:30:43 +01:00
Jonathan G Rennison
0bd33eff1e
Fixes use of builtins in CountBits for small and/or signed input types.
2016-09-12 18:37:28 +01:00
Jonathan G Rennison
e85e302a68
Merge branch 'signal_tunnels_bridges' into jgrpp
...
# Conflicts:
# src/rail_cmd.cpp
2016-09-11 13:21:14 +01:00
Jonathan G Rennison
8281041784
Fix action cost estimation for signal dragging over bridge/tunnels.
...
If a bridge/tunnel entrance is signalled, blacklist the far end.
2016-09-11 13:20:30 +01:00
Jonathan G Rennison
888cd1be07
Merge branch 'cpp-11' into signal_tunnels_bridges
...
# Conflicts:
# src/saveload/saveload.cpp
2016-09-11 13:16:54 +01:00
Jonathan G Rennison
375b069f82
Replace day length scaled tick macros with global variables.
...
This is to avoid needing to expensively re-calculate them all the time.
Instead update them by incrementing.
2016-09-10 01:03:48 +01:00
Jonathan G Rennison
d733955d33
Add road vehicle state to UpdateViewport()->GetImage() var whitelist.
...
Minor refactoring of var check.
2016-09-10 01:03:48 +01:00
Jonathan G Rennison
0c1f59807d
Merge branch 'enhanced_viewport_overlay' into jgrpp
2016-09-10 01:03:31 +01:00
Jonathan G Rennison
c137303584
Cache list of active viewports instead of always iterating window list.
...
This is to speed up marking all viewports dirty, which is done very
frequently.
2016-09-10 01:01:07 +01:00
Jonathan G Rennison
c20cf31514
Merge branch 'cpp-11' into enhanced_viewport_overlay
...
# Conflicts:
# src/rail_gui.cpp
# src/saveload/saveload.cpp
# src/smallmap_gui.cpp
2016-09-10 00:57:05 +01:00
Jonathan G Rennison
ea2b04a6be
Add C++11 container utility functions.
2016-09-10 00:55:13 +01:00
Jonathan G Rennison
778d3f1352
Configure: Default to trying clang then gcc on OSX, gcc then clang elsewhere.
2016-09-08 23:14:02 +01:00
Jonathan G Rennison
db026ec8b0
No longer truncate savegame version in gamelog.
...
Add an extended feature for changed savegame format.
2016-09-08 21:22:39 +01:00
Jonathan G Rennison
5672b6c2c8
Enable custom allocator use on clang.
2016-09-08 20:09:42 +01:00
Jonathan G Rennison
a8e0862500
Enable prefetch and bswap buitins for clang.
2016-09-08 20:00:56 +01:00
Jonathan G Rennison
34040b694c
Make use of override unconditional.
2016-09-08 19:47:59 +01:00
Jonathan G Rennison
8ad53acfef
Merge branch 'crashlog_improvements' into jgrpp
2016-09-08 19:41:53 +01:00
Jonathan G Rennison
c2825c12ea
Add clang version support to crashlog output.
2016-09-08 19:40:15 +01:00
Jonathan G Rennison
c59509c2aa
Use -gline-tables-only instead of -g1 on clang.
2016-09-08 19:38:13 +01:00
Jonathan G Rennison
f7774415f2
Merge branch 'cpp-11' into crashlog_improvements
...
# Conflicts:
# src/stdafx.h
2016-09-08 19:36:00 +01:00
Jonathan G Rennison
8a2f9311a9
Include -01 in CFLAGS_BUILD when using clang.
2016-09-08 19:31:40 +01:00
Jonathan G Rennison
b8a89437a1
Enable use of atomic store/load on clang.
2016-09-08 18:40:08 +01:00
Jonathan G Rennison
390a22f864
Enable FINAL, (un)linkely, __attribute__ for clang.
2016-09-08 18:38:53 +01:00
Jonathan G Rennison
9a7c1911fc
Fix narrowing conversion errors with clang.
2016-09-08 18:17:55 +01:00
Jonathan G Rennison
9ea018abc5
Merge branch 'cargo_type_order' into jgrpp
...
# Conflicts:
# src/order_base.h
# src/order_gui.cpp
# src/order_type.h
# src/saveload/extended_ver_sl.cpp
# src/saveload/extended_ver_sl.h
# src/vehicle_base.h
2016-09-08 00:12:48 +01:00
Jonathan G Rennison
bc04b07f2b
Fix double-use of bits 3 and 7 in Order::flags.
...
Use a different encoding for the cargo type load/unload bit in flags.
2016-09-08 00:12:27 +01:00
Jonathan G Rennison
153a0536df
Merge branch 'tracerestrict-sx' into jgrpp
...
# Conflicts:
# src/rail_gui.cpp
# src/saveload/extended_ver_sl.cpp
2016-09-07 22:06:06 +01:00
Jonathan G Rennison
88156ee570
Merge branch 'day_length' into jgrpp
2016-09-07 22:04:10 +01:00
Jonathan G Rennison
5e67582a64
Merge branch 'save_ext' into jgrpp
...
# Conflicts:
# config.lib
# src/saveload/extended_ver_sl.cpp
# src/saveload/saveload.cpp
2016-09-07 22:02:57 +01:00
Jonathan G Rennison
c8942219bd
Merge branch 'save_ext' into day_length
...
# Conflicts:
# src/saveload/saveload.cpp
2016-09-07 21:49:28 +01:00
cirdan
315db4874a
Remove unused global struct RefitDesc
...
Global struct RefitDesc was defined but never used.
(cherry picked from commit 6826240f8170a93720a0f856f1a10d6dda1926c7)
2016-09-07 21:35:27 +01:00
cirdan
ca98e78c69
Remove unused Vehicle capacity methods
...
Remove unused methods Vehicle::GetConsistFreeCapacities and
Vehicle::GetConsistTotalCapacity.
(cherry picked from commit d97442878f9856c253a3bf976b6a3e114faebefe)
2016-09-07 21:32:27 +01:00
cirdan
25bd3ed6f4
Fix map borders when switching freeform edges
...
When disabling freeform edges after they were enabled, the tiles
at the northern borders of the map were turned from void to water
by simply setting their type to MP_WATER, which is wrong, because
they were left as owned by player 0, since their owner information
was not updated. Use MakeSea instead, which gets it right.
(cherry picked from commit 39408d6cc4080760f5a58d60cbed9f2ea584496f)
2016-09-07 19:17:44 +01:00
cirdan
c5e30b8f04
Fix file descriptor leak in LoadOldSaveGame
...
LoadOldSaveGame was leaking a file descriptor when it
successfully loaded a savegame.
(cherry picked from commit f47cfbbba0b182f116109e02445bb419fab1a157)
2016-09-07 19:15:04 +01:00
cirdan
293ce8b4ab
Remove impossible conditional in RealSave_Town
...
Saving always uses the current savegame version SAVEGAME_VERSION,
which is non-decreasing and already greater than 166.
(cherry picked from commit 6b79497d380b3ae865ddf4d3efb71c319a2bb579)
2016-09-07 18:47:47 +01:00
cirdan
4a19babf9e
Remove unused ChunkType flag CH_AUTO_LENGTH
...
CH_AUTO_LENGTH is no longer used anywhere, so remove all code
that depends on it.
(cherry picked from commit 9c620d9de5d45b78f7d992d6b3897009fe988d86)
2016-09-07 18:47:39 +01:00
cirdan
ec157b4a66
Remove save-only autolength flag from economy chunk handlers
...
CH_AUTO_LENGTH is only used when saving chunks; it makes no sense
to set it for chunks without a save handler.
(cherry picked from commit 8b2fe11d8491fb5f3b9bd7dd5344a0956817e41c)
2016-09-07 18:47:32 +01:00
Jonathan G Rennison
6031cca2d7
Refactor Link Refresher cargo mask handling.
...
Add some separate helper functions.
Move cargo checks out of LinkRefresher::Run.
2016-09-06 22:16:29 +01:00
Jonathan G Rennison
f8f8e642dc
Use unique_ptr and initialiser init for OrderExtraInfo.
2016-09-06 22:10:18 +01:00
Jonathan G Rennison
e90b266af1
De-duplicate cargo masking boilerplate using C++11.
2016-09-06 22:10:18 +01:00