Commit Graph

14904 Commits

Author SHA1 Message Date
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
8dde1cda94 Style cleanup, and remove a wrong TODO.
This was SVN commit r16974.
2015-09-02 17:40:31 +00:00
0c4c6e499d Fix the LeaveFoundation order in UnitAI in the case of animals. The code used was a hack using the fleeing tactics, so use the regular "Order.LeaveFoundation" code shared with non-animal units.
Fixes #3372

This was SVN commit r16973.
2015-09-02 17:36:20 +00:00
bcc75b2156 fix buggy test
This was SVN commit r16972.
2015-09-02 17:11:29 +00:00
f134ac63bb Revert most of f240374b28 which was actually bad. It caused units to get stuck because the obstructions won't block the same paths when rasterized on the grid and when directly tested for collisions.
As a general rule, pathfinding-blocking shapes should not be tested
against for movements. Only the passability grid should be considered.
As the algorithm which tests paths on this grid was fixed in 1c9ea56800,
it can be safely used.

Fixes #3376.

This was SVN commit r16971.
2015-09-02 15:50:16 +00:00
5ff31a1e33 small cleanup of unit_actions.js
This was SVN commit r16970.
2015-09-01 20:49:37 +00:00
c599019b0a fix crash when switching to gaia perspective while controlAllUnits is enabled
This was SVN commit r16969.
2015-09-01 20:46:49 +00:00
025391db35 fix behavior when under alert, fixes #3273
This was SVN commit r16968.
2015-08-31 19:54:06 +00:00
2c87ccb66e Fix typo causing errors for building placement.
This was SVN commit r16967.
2015-08-30 23:07:25 +00:00
9451cf38f7 Fixes Esc key opening options dialog in match setup, introduced by a964e83c79
This was SVN commit r16966.
2015-08-30 21:31:03 +00:00
8a8a3b8377 Revert a wrong piece of code from 63e42fbd31. Refs #3293
This was SVN commit r16965.
2015-08-30 20:32:22 +00:00