a63e9c521d
Optionally limit the framerate in menus to 50 FPS, to save power. Patch by elexis, fixes #2882
...
This was SVN commit r16927.
2015-08-20 13:22:44 +00:00
ba82743777
Some range-based for loops.
...
This was SVN commit r16926.
2015-08-20 12:58:41 +00:00
b2e8a241d2
Properly check loaded scripts in the second simulation instance of a serialization test. Fixes #3238
...
This was SVN commit r16925.
2015-08-20 12:52:29 +00:00
1ab3a4a02d
Fix 6506bc20cb
, refs #3238
...
This was SVN commit r16924.
2015-08-20 12:49:43 +00:00
558d43bac5
Replace some functor structs with lambdas, closures or range-based fors.
...
This was SVN commit r16923.
2015-08-19 03:33:04 +00:00
36c6b50944
Revert emplace for associative containers. Fixes #3366 .
...
GCC < 4.8.0 does not support emplace for those.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44436 .
This was SVN commit r16922.
2015-08-19 03:32:47 +00:00
674f49f1a8
Remove generated test files during clean-workspaces.sh. Patch by otero. Fixes #3275 .
...
Also remove two generated and disabled test files.
This was SVN commit r16921.
2015-08-19 01:30:09 +00:00
bd8f9b7824
Fix enemy corpses visible in the fog of war. Fixes #3179 .
...
This was SVN commit r16919.
2015-08-16 09:29:34 +00:00
1c9ea56800
Fix the CheckLineMovement algorithm. Added some comments and a test to avoid problems.
...
This addresses some "stuck units" cases.
This was SVN commit r16918.
2015-08-13 16:21:39 +00:00
01de76f4be
Code improvements for the hierarchical pathfinder: cache hits and variable initialization.
...
This was SVN commit r16917.
2015-08-11 15:21:11 +00:00
28ef270571
Enhance the MakeGoalReachable algorithm to handle better non-point goals.
...
Fixes #3363 , #3297 .
This was SVN commit r16915.
2015-08-11 09:47:08 +00:00
f7a7b687fc
Don't send TerrainChanged messages when painting the terrain, as terrain texture doesn't influence passability.
...
This was SVN commit r16914.
2015-08-10 11:55:43 +00:00
ec96c737ee
Actually use vpObj instead of obj, and use it in all cases. Refs #3354 .
...
This was SVN commit r16909.
2015-08-02 14:40:51 +00:00
94302a4149
Move engine version to common file. Patch by elexis. Fixes #3359 .
...
This was SVN commit r16906.
2015-08-01 23:03:13 +00:00
217a500d60
Add missing license headers. Fixes #3357 .
...
This was SVN commit r16903.
2015-07-31 11:28:14 +00:00
1a8096a920
Reliably send the ReplayFinished message at the very end of visual replays. Patch by elexis.
...
This was SVN commit r16902.
2015-07-30 21:55:34 +00:00
a4e606c575
TerrainTextureManager cleanup.
...
This was SVN commit r16901.
2015-07-30 21:51:01 +00:00
c5aad60776
Actually stop iterating if retval != INFO::OK. Also fix comments.
...
This was SVN commit r16900.
2015-07-30 21:50:58 +00:00
15a4c813d6
Add support for AArch64 (ARM64). Patch by tbm. Fixes #3345 .
...
This was SVN commit r16899.
2015-07-30 19:52:55 +00:00
0868d03e74
Fix previous commit.
...
This was SVN commit r16898.
2015-07-30 17:27:27 +00:00
2238a18aee
Close and free replay streams. Based on patch by elexis.
...
This was SVN commit r16897.
2015-07-30 16:43:22 +00:00
47336b770f
Add clipping to OList cells. Patch by elexis. Fixes #3353 .
...
This was SVN commit r16895.
2015-07-30 01:33:48 +00:00
8bfe16cac8
Use in-place construction.
...
This was SVN commit r16894.
2015-07-29 23:44:17 +00:00
c5eb9b7bb7
Range-based for for VfsPath loops.
...
This was SVN commit r16893.
2015-07-29 23:44:12 +00:00
540cf75794
L10n code cleanup.
...
This was SVN commit r16892.
2015-07-29 23:44:05 +00:00
a07add11c6
Some range-based for loops and some style cleanup.
...
This was SVN commit r16888.
2015-07-29 01:07:23 +00:00
b4d517c261
Fix infinite loop in key code to key name mapping.
...
Also make some data const and construct data in-place.
This was SVN commit r16887.
2015-07-29 01:07:18 +00:00
851e863892
Remove animation name compatibility mapping.
...
10 years should have given everyone enough time to move to the new
naming scheme.
This was SVN commit r16884.
2015-07-27 01:08:29 +00:00
da48c8c26f
Some const refs and one const function.
...
This was SVN commit r16882.
2015-07-27 01:08:25 +00:00
bd53e9d736
Remove unused ah_translate code.
...
This was SVN commit r16881.
2015-07-27 01:08:15 +00:00
f240374b28
Fix a number of short/long range pathfinder inconsistencies revealed by 128a603287
.
...
This was SVN commit r16869.
2015-07-18 12:33:40 +00:00
128a603287
Use the terrain-only grid for terrain edges in the short pathfinder algorithm. This grid is updated on each terrain change, whereas the passability grid is updated once a turn. This caused OOS on rejoin, fixes #3292 .
...
However, using the terrain-only grid reveals one discrepancy between the
short pathfinder (which uses unit radii) and the long one (which uses
unit clearances). So I implemented the change proposed by sanderd17 in
#3294 , which is removing unit radius and using only the pathfinder
clearance. Refs #3294
Now some tweaking has to be done in the templates, so that units get a
passability class suited to their apparent size. In the meantime the
unit motion is quite bugged.
This was SVN commit r16867.
2015-07-18 08:37:49 +00:00
8fc4ecaa6b
Fix previous commit, stupid typo...
...
This was SVN commit r16859.
2015-07-15 16:57:23 +00:00
b58f8ab969
Serialize the activation flag of the scripted Visibility component.
...
Currently only preview entities are affected, and they are not
serialized, but it could break a lot of things in the future.
This was SVN commit r16858.
2015-07-15 16:55:05 +00:00
39d93ea17c
Change the handling of modified entities in the visibility update.
...
The game has to deal with situations such as: the visibility of an
entity changes, a mirage is created for it -> the mirage visibility is
updated -> the entity visibility is updated back.
All of this process now happens in the same turn, and all updates are
guaranteed to be performed. This fixes a source of serialization errors
and rejoin OOSes.
Fixes #3107
This was SVN commit r16857.
2015-07-15 16:46:59 +00:00
9f1b85d562
Remove a useless global terrain update when modifying environment settings in Atlas.
...
Also make sure that the settings are updated in the game view in a
non-hacky way.
This was SVN commit r16855.
2015-07-14 17:08:02 +00:00
04982b0bf5
Fix compiler warning
...
This was SVN commit r16849.
2015-07-12 16:49:26 +00:00
edf6e909b2
...aaaaand I forgot this guy.
...
This was SVN commit r16846.
2015-07-12 08:11:30 +00:00
0d32afd688
Improve the style of GUI string text call functions.
...
This was SVN commit r16845.
2015-07-12 08:09:55 +00:00
0682190def
Don't postpone rendering of icons when they are at the end of a GUI string.
...
Fixes #2502
This was SVN commit r16844.
2015-07-12 07:38:04 +00:00
0c45e3b5d0
Correctly compute the masks for shared visibility updates. The old code was working only because of luck when shared vision was always reciprocal.
...
Refs #2055 , fixes #3327
This was SVN commit r16842.
2015-07-11 16:45:09 +00:00
aa78c1be66
Make the connectivity grid generation algorithm of the hierarchical pathfinder a bit less stupid.
...
This was SVN commit r16834.
2015-07-05 20:32:52 +00:00
11c9471ad6
Change back the long pathfinder to take into account non-pathfinding classes, but only when reloading, to avoid impacting the performance.
...
Also make the GetPassabilityClasses functions use references instead of
wild allocations. Use a reference when passing pass classes to the AI
worker.
This was SVN commit r16833.
2015-07-05 19:14:52 +00:00
0e4e3754e9
Update the passability grid properly when changing the map shape or the water height. Also include a fix for a possible bad memory access.
...
This was SVN commit r16832.
2015-07-04 21:25:57 +00:00
3018359576
Improve a little bit Atlas performance when modifying terrain elevation.
...
This was SVN commit r16827.
2015-07-01 19:13:56 +00:00
30e5f032d8
Adapt Atlas to the new pathfinder. Fixes #3298
...
This was SVN commit r16824.
2015-06-29 19:59:41 +00:00
e1a34eb4ea
Handle (de)serialization of the AI pathfinder.
...
This was SVN commit r16815.
2015-06-24 20:24:58 +00:00
0b7343dccc
Preserve the dirtiness informations of the passability grid at deserialization for proper AI updates.
...
Refs #3310
This was SVN commit r16814.
2015-06-24 20:15:06 +00:00
152d39d8a6
Fix save/load games, and use the new code to enhance the tests.
...
This was SVN commit r16812.
2015-06-23 20:39:11 +00:00
1793a96c14
Actually remove the unused expression.
...
This was SVN commit r16805.
2015-06-21 20:44:31 +00:00