fe040c695f
Change the shape rasterization to not use DistanceToSquare, which often called sqrt. This apparently reduces total turn time by as much as 5% (!)
...
Refs #3368
This was SVN commit r17207.
2015-11-08 17:24:59 +00:00
cb025bb725
Removes extraneous check from XpartaMuPP. Fixes #3568 .
...
This was SVN commit r17206.
2015-11-08 17:09:59 +00:00
dd6d09521c
Not sure how but I messed up the previous commit.
...
This was SVN commit r17205.
2015-11-08 16:44:08 +00:00
42d0e6d46e
Optimize the hierarchical pathfinder's "makeGoalReachable" slightly. Does not affect simulation results.
...
This was SVN commit r17204.
2015-11-08 16:39:43 +00:00
cd025b2069
fix typo
...
This was SVN commit r17203.
2015-11-08 13:09:49 +00:00
7c2f178634
petra: do not try to train females if not available in templates, only a temporary fix waiting for #3586
...
This was SVN commit r17202.
2015-11-08 13:05:56 +00:00
8f00293a58
Assign proper alternatives to some terrian materials. Fixes #3585
...
This was SVN commit r17200.
2015-11-07 19:43:41 +00:00
d569fe63b4
petra: don't loose time approaching a target entity if it was captured in the meantime
...
This was SVN commit r17199.
2015-11-07 18:12:55 +00:00
c319ff062d
Partial fix to a formation "gliding" issue, unsure so far what is causing this.
...
This was SVN commit r17198.
2015-11-07 17:36:31 +00:00
3163c9d4a2
Fix a rare issue with the short-range pathfinder where units took odd paths when the target was beyond the search zone.
...
This was SVN commit r17197.
2015-11-07 14:33:55 +00:00
ad4edba3dc
move a bit an unreachable tree, fixes #3584
...
This was SVN commit r17196.
2015-11-07 14:22:10 +00:00
eed9739031
Make terrain conform to the materialmgr.quality setting. Make quality 0.0 remove triplanar texturing and tree swaying effect.
...
In consequence, pick a sensible default at 2.0 so that new players have
a somewhat good looking game.
This was SVN commit r17195.
2015-11-06 20:55:07 +00:00
2d7074e8d6
Fix unused variables left behind.
...
This was SVN commit r17194.
2015-11-06 20:42:12 +00:00
596025df71
Fix a bug in [17163] that could get units with a large passability class stuck.
...
This was SVN commit r17192.
2015-11-06 20:33:13 +00:00
e26b59c917
Changes to unitMotion.
...
Make sure we do not treat as circles entities that we really should
treat as squares (such as trees). This fixes an issue reported by Stan.
Make sure we never forget about our destination if we are blocked by
unit obstructions. This makes sure that units in a group but not in
formation will not be blocked by the other units, and probably makes the
general behavior more sane. Helps following [17166]
Refs #3505 , #3471 , #3376
This was SVN commit r17191.
2015-11-06 20:09:18 +00:00
9efd79e240
Fix an issue where square diagonals were incorrectly handled when checking the distance to the target. Fixes #3577 properly. Patch by mimo.
...
Decrease fishing ship gathering range in consequence (revert [17178]).
This was SVN commit r17190.
2015-11-06 19:56:52 +00:00
1ed3761859
Fix style issues and redundant code in [17161] and [17163].
...
This was SVN commit r17189.
2015-11-06 19:48:08 +00:00
2126b53b9d
Fixes interpolation of flying objects.
...
This was SVN commit r17187.
2015-11-06 16:56:39 +00:00
33398baa90
petra: only units which have effectively started an attack should be stopped when the attack is aborted, fixes #3582
...
This was SVN commit r17185.
2015-11-05 20:52:41 +00:00
83bba7bdfc
revert e0771b98dd
which was based on misunderstanding of the algo, and fix the inverted_circle case, refs #3577
...
This was SVN commit r17184.
2015-11-05 19:22:04 +00:00
05547bf36f
Fix an oversight.
...
This was SVN commit r17182.
2015-11-05 16:52:19 +00:00
071c5317f4
I have noticed from walking on a bridge everyday to work that reflections are more distorted when vieved at an angle. This is a quick attempt at imitating this effect.
...
This was SVN commit r17181.
2015-11-04 21:08:24 +00:00
a9323da01b
Fix #3566 by fixing an off-by-one error in the final replay turn logic. Patch by elexis.
...
This was SVN commit r17180.
2015-11-04 20:33:34 +00:00
815b0e4e03
Change tree obstruction sizes following [17161] as it looks better and will help units navigate through forests.
...
This was SVN commit r17179.
2015-11-04 20:14:39 +00:00
12d8753eff
Bump fishing ships gathering range since their obstruction size was effectively increased with the new pathfinder. This resulted in them sometimes not being able to deposit their resources at docks.
...
Fixes #3577 , reported by maxticatrix through elexis.
This was SVN commit r17178.
2015-11-04 19:49:56 +00:00
8f1853b8d8
Prevent accidental overwriting of replays in very rare cases while we wait for a better solution.
...
Refs #3255
This was SVN commit r17177.
2015-11-04 19:26:40 +00:00
f91478c730
Fix an oversight in the obstruction manager that lead to possibly the most insidious OOS error we've seen so far.
...
Fixes #3292 .
This was SVN commit r17176.
2015-11-04 18:51:47 +00:00
bc6727a23a
Show a message about cheats being enabled in gamesetup. Patch by elexis. Fixes #3546 .
...
This was SVN commit r17175.
2015-11-03 20:44:53 +00:00
9138bff64e
Increases pierce armour of ranged siege.
...
This was SVN commit r17174.
2015-11-03 20:14:04 +00:00
9b8180ffe8
Slight nerf reduction.
...
This was SVN commit r17173.
2015-11-03 18:46:12 +00:00
54b405a0d0
Reduces effectiveness of early camel rush
...
This was SVN commit r17172.
2015-11-03 18:19:11 +00:00
e527a5c321
Fix #3525 and #3399 by recalculating territories on request to GetTerritoryPercentage. Patch by elexis
...
This was SVN commit r17171.
2015-11-02 07:32:43 +00:00
6493974800
Fix #2676 by only acknowledging commands matching the sender's name if cheats are disabled. Based on patch by historic_bruno.
...
This was SVN commit r17170.
2015-11-02 03:20:44 +00:00
a897fac229
petra: fix a rare serialization bug where an entity inside an army was killed on the same turn it was serialized
...
This was SVN commit r17169.
2015-11-01 18:54:29 +00:00
3ba435ae35
Lowers the minrange of towers and the briton fortress, which were too big and resulted in units close to them being impossible to attack. This seems like an oversight and not a feature, as we currently do not have murder holes or similar technologies.
...
I left outpost minrange higher so that it's actually safe to attack
outposts when you reach their foot. Seemed realistic.
Fixes #3559
This was SVN commit r17167.
2015-11-01 17:22:43 +00:00
1694913b16
Make "no formation" the default setting but keep formations activated to help pathfinding in A19. Use at your own risk. Refs #3505 and #3565 .
...
Also make rabbit, chicken and shark no longer obstruct movement, to
further help with pathfinding. These may or may not be udpated later.
Refs #3562 . Fixes #3497 .
This was SVN commit r17166.
2015-11-01 17:10:19 +00:00
e5765ba1ef
petra: do not react to pseudo-attacks (recovering capture points) from allies
...
This was SVN commit r17165.
2015-11-01 17:09:09 +00:00
d9e9345be2
fix some indentation of 6e05a00929
...
This was SVN commit r17164.
2015-11-01 16:47:53 +00:00
357203a90f
Pathfinding changes: unit-unit collisions now allow for some overlap, so units can get closer to each other, which I found improved pathfinding considerably.
...
Also fix a potential issue I noticed in some cases, though that
particular fix implies scrapping waypoints, so if units seem to get
lost, please report so and I'll revert those changes.
I can't find any way to get units stuck with this patch.
This was SVN commit r17163.
2015-11-01 13:38:48 +00:00
14038d4cd8
Fix more pathfinding issues.
...
Change the way the long-range pathfinder rasterisation works slightly so
that we have a better compatibility with the short-range pathfinder.
Should fix the "stuck units" issues, though I am not sure so I am not
marking them as fixed so far. Refs #3471 , #3505 , and possibly #3292 .
Caveat: I am now using clearance of 0.8 for "default" class, which might
have side-effects: please report anything weird.
Also fix leftover style issues.
This was SVN commit r17161.
2015-11-01 07:28:43 +00:00
4428c1e690
Fix #3537 with better rating state enforcement. Patch by elexis.
...
This was SVN commit r17160.
2015-10-31 21:19:58 +00:00
a6111ff8b7
Fix #3309 by capping m_DeltaSimTime in NetTurnManager.cpp. Patch by elexis. Review by Philip.
...
This was SVN commit r17159.
2015-10-31 21:04:47 +00:00
6acfec0f44
Fix a logic error in the hierarchical pathfinder that resulted in it not updating all passability classes correctly. Fixes #3538 , refs #3292 (it fixes one of the cases, but not the examples).
...
Also features style fixes, thanks leper for noticing.
This was SVN commit r17158.
2015-10-31 20:47:47 +00:00
a3f467ae4e
Make resources have a static, passable obstruction. Ought to be a temporary fix. Fixes #3530
...
See #3530#comment:9 for a proper fix to this issue.
This was SVN commit r17156.
2015-10-31 15:28:42 +00:00
4d804cf26b
fix typo in 6e05a00929
...
This was SVN commit r17155.
2015-10-31 13:42:14 +00:00
6e05a00929
fix obstruction of target entity not taken into account in short pathfinder, closes #3539
...
This was SVN commit r17154.
2015-10-31 13:37:34 +00:00
9a623cb302
only decay towards connected tiles, fixes #3558
...
This was SVN commit r17153.
2015-10-31 13:26:59 +00:00
8494e36aa8
Revert the logic change in 9da482ead4
. This commit removed the checks in UnitMotion against structures, which should have been fine except the short-range pathfinder and the long-range pathfinder are not entirely compatible (check out #3532 for details). This behavior was probably slightly optimized, but it was too clever for its own good in the current state of the pathfinder, might be reintroduced later.
...
This resulted in ALL "units inside obstructions" issues.
Thanks to elexis for the testing.
Fixes #3532 , #3450 .
Refs #3538 (still OOSes), #3410 (unitmotion remains buggy for
formations, but this is only aesthethic.)
Probably affects #3471 and #3505 , but those are not fixed.
This was SVN commit r17152.
2015-10-31 08:43:31 +00:00
e895b044e7
Fix #3553 by removing a superfluous warning. Patch by elexis.
...
This was SVN commit r17151.
2015-10-31 07:21:09 +00:00
c517bc2aab
Double-click to join game/load replay. Fixes #3557 . Patch by elexis.
...
This was SVN commit r17150.
2015-10-31 06:05:18 +00:00