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
2a655d1363
cleanup of 4054e5cb04
...
This was SVN commit r16880.
2015-07-26 14:54:52 +00:00
27de859f9b
Petra: minor tweaks in farming
...
This was SVN commit r16879.
2015-07-26 14:49:01 +00:00
4054e5cb04
make a wooden tower template for each civ, refs #3059
...
This was SVN commit r16878.
2015-07-26 14:43:21 +00:00
edd03ad557
disable the delete button when less than 50% cp, fixes #3300 , patch by bb
...
This was SVN commit r16877.
2015-07-22 17:06:06 +00:00
eb47670cd1
Some string fixes reported by translators.
...
This was SVN commit r16874.
2015-07-21 21:19:41 +00:00
a61c7560eb
petra: minor attack tweaks
...
This was SVN commit r16873.
2015-07-21 19:30:54 +00:00
b0a5087dda
Prevent observers from pausing the game. Patch by Stefan. Fixes #3341 .
...
This was SVN commit r16871.
2015-07-19 23:03:03 +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
1e79b3a8af
Update templates to reflect the recent obstruction changes for units.
...
Fixes #3294 .
This was SVN commit r16868.
2015-07-18 12:30:26 +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
35071dd44b
allow changing the trading gain with tech + rework of market techs, fixes #3326
...
This was SVN commit r16866.
2015-07-17 19:27:15 +00:00
a0d21e8d9e
do not fill changedTemplateInfo when no AIs to prevent OOS, refs #3133
...
This was SVN commit r16865.
2015-07-17 17:45:15 +00:00
b471975332
improve consistency between decay and regen rates for buildings, fixes #3332
...
This was SVN commit r16864.
2015-07-16 18:29:53 +00:00
76d5374e77
Some string changes based on translators' feedback.
...
This was SVN commit r16863.
2015-07-16 17:07:55 +00:00
f9440a964a
minor petra tweaks
...
This was SVN commit r16860.
2015-07-15 17:29:06 +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
b0386d7fab
Fix gamesetup for observer games. Thanks to elexis
...
This was SVN commit r16854.
2015-07-14 11:26:14 +00:00
d08279ceb6
some fixes for petra
...
This was SVN commit r16853.
2015-07-13 13:05:14 +00:00
74b600d661
modify also capture points in the civ specific techs affecting structure health, fixes #3333
...
This was SVN commit r16852.
2015-07-13 12:46:26 +00:00
c946ebbf7c
prevent structures without territory influence to decay in allied territory
...
This was SVN commit r16851.
2015-07-12 18:46:44 +00:00
04982b0bf5
Fix compiler warning
...
This was SVN commit r16849.
2015-07-12 16:49:26 +00:00
f74215e96c
rounding needed for houses with popBonus%5 != 0, fixes #3328
...
This was SVN commit r16848.
2015-07-12 15:23:34 +00:00
0f10e21ab1
Keep ownership when changing formation. Fixes #3154 , fix proposed by sanderd17.
...
This was SVN commit r16847.
2015-07-12 08:48:31 +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
9161cd7e24
petra: rework of the management of captured/decaying structures
...
This was SVN commit r16843.
2015-07-11 17:00:21 +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
c4389abceb
let petra use wooden towers in village phase
...
This was SVN commit r16841.
2015-07-09 20:46:09 +00:00
1b88eaf1cd
Do not reset victory conditions when changing map selection. The behavior is now coherent with everything else (players, etc.) when selecting random maps.
...
Patch by elexis, fixes #3209
This was SVN commit r16840.
2015-07-09 16:52:12 +00:00
b3fa75529b
All work and no play... refs #3253
...
This was SVN commit r16839.
2015-07-08 19:17:32 +00:00
cf21c34e3f
Give players and bots their actual name during the game, for better experience.
...
Patch by elexis, fixes #3253
This was SVN commit r16838.
2015-07-08 19:03:14 +00:00
542061dbed
Handle gaps in the teams list in the summary screen, plus code cleanup.
...
Patch by elexis, fixes #3323
This was SVN commit r16837.
2015-07-08 17:01:34 +00:00
4a0bb47a62
AI: various cleanings and fixes
...
This was SVN commit r16836.
2015-07-07 17:32:35 +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
7ca2084e89
Fix #3072
...
This was SVN commit r16831.
2015-07-04 18:00:51 +00:00
b7a1b9fbd4
fixes some wonder templates
...
This was SVN commit r16830.
2015-07-04 16:46:20 +00:00
32252ea00c
fix persian conscription_cavalry which needs persian levy_cavalry
...
This was SVN commit r16829.
2015-07-03 17:01:19 +00:00
512f69379b
Fix the male variation of non-Roman healers. Fixes #3318
...
This was SVN commit r16828.
2015-07-02 16:59:16 +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
e500de4dc6
AI: clean up
...
This was SVN commit r16826.
2015-06-30 19:10:57 +00:00
30e5f032d8
Adapt Atlas to the new pathfinder. Fixes #3298
...
This was SVN commit r16824.
2015-06-29 19:59:41 +00:00
6a9019564e
AI: clean up some obsolete code
...
This was SVN commit r16823.
2015-06-28 19:08:00 +00:00