b77ad821c2
Reenable formations and fix/improve the communication between UnitAI and UnitMotion. With the new pathfinder some path requests can be completed instantaneously, so UnitAI has to handle MoveStarted messages even in the IDLE state.
...
Please note that this commit makes #3410 really visible. Formation
members might pass through buildings.
Refs #3410 , #3337 .
This was SVN commit r17028.
2015-09-17 16:31:23 +00:00
fc45777793
delay the ownerShip only after the entity is spawned, fix #3422
...
This was SVN commit r17027.
2015-09-16 09:33:38 +00:00
21619a4705
Move the victory conditions to the new simulation settings system. Patch by elexis. Refs #3355,#3001
...
This was SVN commit r17026.
2015-09-16 09:22:36 +00:00
4e716699d7
cleanup of EntityState caching
...
This was SVN commit r17025.
2015-09-15 21:34:31 +00:00
7e18c0fd9e
determineAction only when needed
...
This was SVN commit r17024.
2015-09-15 18:39:03 +00:00
012bf32673
petra: improve detection of threatening enemy units, complete and fix 7ac0a4a3db
, fixes #3418
...
This was SVN commit r17023.
2015-09-15 18:29:57 +00:00
7eefcbe8c5
Do not use non-static data member initializer.
...
GCC 4.6 does not support those and initializing it in the ctor is a lot
clearer in this case.
This was SVN commit r17022.
2015-09-15 00:55:03 +00:00
a65a8472f9
Mark some const functions as such.
...
This was SVN commit r17021.
2015-09-13 20:59:10 +00:00
e7f736fd0f
Move the game speeds to the new simulation settings system. Patch by elexis. Refs #3355
...
This was SVN commit r17019.
2015-09-13 19:15:07 +00:00
ae3aad704d
fix previous commit
...
This was SVN commit r17018.
2015-09-13 19:06:14 +00:00
9816e7c92d
Rename some variables to point out that they are only used in visual replay. Add script function IsVisualReplay. Refs #9 #3355 , patch by elexis
...
This was SVN commit r17017.
2015-09-13 19:03:33 +00:00
7ac0a4a3db
petra: improve detection of threatening enemy units
...
This was SVN commit r17016.
2015-09-13 17:25:18 +00:00
4964303f54
petra: be more restrictive to attack a field, refs #3406
...
This was SVN commit r17015.
2015-09-13 17:21:48 +00:00
ae6475fcc0
Fix a typo, patch by godlikeldh.
...
This typo didn't have any influence since dirty unit shapes are usually
discarded during the rasterization (they don't block long-range
pathfinding). Switching the order of a check in RasterizeHelper prevents
performance problems to a really small extent.
This was SVN commit r17014.
2015-09-13 10:18:37 +00:00
03d2c5e40b
Support inverted goals with the long-range pathfinder. This allows units to flee and should fix problems with ranged units too close to their targets. Fixes #3405 , refs #3372 .
...
Now that units flee it's necessary to fix the unit chasing: this commit
reintroduces some code from 298115f4c5
that disappeared with the
committing of the new pathfinder. Refs #1537 .
Also includes some style improvements to the UnitMotion code.
This was SVN commit r17013.
2015-09-13 09:33:09 +00:00
bbcf996531
Move the population cap to the new simulation settings system. Patch by elexis. Refs #3355 .
...
This was SVN commit r17012.
2015-09-13 00:32:34 +00:00
8bb21e251a
Make Tuscan Acropolis skirmish map playable. Changes by stanislas69. Fixes #2970 .
...
This was SVN commit r17011.
2015-09-12 20:59:19 +00:00
73c210f6fb
Clean up line endings.
...
This was SVN commit r17010.
2015-09-12 20:58:59 +00:00
bdd6dd0f2f
JS component cleanup.
...
This was SVN commit r17009.
2015-09-12 20:58:57 +00:00
f271dd2bc1
fix display in structure tree of techs researchable only at a later phase than their availability, #fix #3411 , patch by S0600204
...
This was SVN commit r17008.
2015-09-12 20:02:14 +00:00
29f7f56f60
Add the starting resources to the new simulation settings system, refs #3355 , patch by elexis
...
This was SVN commit r17007.
2015-09-12 19:29:42 +00:00
a3767c3236
Add the ceasefire settings to the new simulation settings system.
...
Patch by elexis, refs #3355 .
This was SVN commit r17006.
2015-09-12 09:48:35 +00:00
979ea476b7
petra: do no make a trade route between too nearby markets
...
This was SVN commit r17005.
2015-09-11 18:06:26 +00:00
8507a7bc27
Create commands.txt only when actually starting the game. Patch by elexis. Fixes #3408 .
...
This was SVN commit r17004.
2015-09-11 17:44:50 +00:00
558695365d
Add some documentation about system components. Fixes #3315 .
...
This was SVN commit r17003.
2015-09-11 04:10:26 +00:00
fc051d94cc
Add check for non-passable (likely water-only) maps to territory percentage calculation.
...
Patch by s0600204. Fixes #3407 .
This was SVN commit r17002.
2015-09-11 02:16:21 +00:00
7842aa0468
petra: do not loose time attacking useless structures
...
This was SVN commit r17001.
2015-09-10 19:27:18 +00:00
dff16f664e
make fences not capturable (as walls and palisades)
...
This was SVN commit r17000.
2015-09-10 19:26:06 +00:00
9da482ead4
Based on previous experimental changes, major update to the unit motion.
...
With this change, units will not check their movement against all
obstructions when moving: terrain and static obstructions are assumed to
be handled by the long-range pathfinder.
However, when static obstructions are changed, the paths have to be
invalidated. In order to minimize the performance impact, units will
check for obstructions when they move after a passability change. If
they collide with something, they will recompute a path that will take
into account the new passability map.
Also includes some code cleanup. This patch should not change
performance a lot: the lower number of checks should give a small
performance improvement while using the message broadcasting system
should hurt it a bit.
Fixes #3376 , #3337 , #1914 .
This was SVN commit r16998.
2015-09-10 18:12:13 +00:00
8b437a0b1c
Fix #3386 , patch by elexis.
...
This was SVN commit r16997.
2015-09-10 05:30:18 +00:00
00a51404c9
cleanup of some for ... in loops on arrays (replaced by for ... of)
...
This was SVN commit r16996.
2015-09-09 18:21:17 +00:00
6213db17dd
petra: some tweaks in trade techs
...
This was SVN commit r16995.
2015-09-09 18:00:53 +00:00
ec6ae9d601
avoid that ships block allied docks, fix #3402
...
This was SVN commit r16994.
2015-09-09 17:37:44 +00:00
3f37ac44d6
Correctly fix the splashscreen typo.
...
This was SVN commit r16993.
2015-09-08 19:23:47 +00:00
bd355c531a
petra: fix and complete c1efebab15
...
This was SVN commit r16992.
2015-09-07 18:14:50 +00:00
a40fdd52d9
fix typo in 19d8c631be
...
This was SVN commit r16991.
2015-09-07 18:00:59 +00:00
5a685b84ca
Recompute the cost grid in the TerritoryManager when needed. Patch by s0600204. Fixes #3399 , #3400 .
...
This was SVN commit r16990.
2015-09-06 22:35:38 +00:00
c1efebab15
petra: do not always try to capture (depends on garrison inside target)
...
This was SVN commit r16989.
2015-09-06 18:39:46 +00:00
19d8c631be
Commit an updated version of the splashscreen for the new pathfinder.
...
This was SVN commit r16988.
2015-09-06 09:08:55 +00:00
4e3b933b11
Fixes some issues in checkrefs.pl: soundgroups have new gender and lang tags, PMP version bump, GUI XML can include directories, civ data path changed
...
This was SVN commit r16987.
2015-09-06 04:42:28 +00:00
448b8248cf
Revert my experimental changes from the previous days. Hopefully I can design something that doesn't introduce a ton of new issues. Refs #3376
...
This was SVN commit r16986.
2015-09-05 18:20:08 +00:00
1d89d05956
Don't try to short-path to non-point goals, because the algorithm won't deal with connectivity. Fixes another bug reported in #3363 .
...
This was SVN commit r16985.
2015-09-04 20:43:05 +00:00
2a7dc39d07
some cleanups of gui code
...
This was SVN commit r16984.
2015-09-04 17:50:04 +00:00
9e3ee0e849
Petra: make a bit more use of cavalry
...
This was SVN commit r16983.
2015-09-04 17:47:54 +00:00
3005637370
Make a compromise between f240374b28
and f134ac63bb
by making the filtering of pathfinding-blocking shapes conditional.
...
Those shapes need to be taken into account when computing a short path,
but they need to be discarded when checking movements or they will
create long/short inconsistencies.
This was SVN commit r16981.
2015-09-03 20:09:25 +00:00
ad9736b5a5
Fix Arabic plural equation in tinygettext.
...
Patch by SafaAlfulaij taken from
https://github.com/tinygettext/tinygettext/pull/8 .
This was SVN commit r16980.
2015-09-03 16:42:05 +00:00
847fbea820
Apparently SVN messed up when I applied the patch for 0c14436c26
, so fix it.
...
Also include some fixes to elexis's oversights, refs #3355 .
This was SVN commit r16979.
2015-09-03 07:32:32 +00:00
c0d8645a6d
remove some unnecessary object<->array copies + some parentheses cleanup
...
This was SVN commit r16978.
2015-09-02 18:14:26 +00:00
7d6553099f
Fix wrong offset when clicking too close to the header of sortable lists. Also added some code comments.
...
Patch by elexis, fixes #3391
This was SVN commit r16976.
2015-09-02 17:55:02 +00:00
0c14436c26
Move player and team number limits to a centralized file which will also eventually hold various kinds of settings.
...
Patch by elexis, refs #3355
This was SVN commit r16975.
2015-09-02 17:45:01 +00:00