mimo
bd355c531a
petra: fix and complete c1efebab15
...
This was SVN commit r16992.
2015-09-07 18:14:50 +00:00
mimo
a40fdd52d9
fix typo in 19d8c631be
...
This was SVN commit r16991.
2015-09-07 18:00:59 +00:00
leper
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
mimo
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
Itms
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
historic_bruno
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
Itms
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
Itms
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
mimo
2a7dc39d07
some cleanups of gui code
...
This was SVN commit r16984.
2015-09-04 17:50:04 +00:00
mimo
9e3ee0e849
Petra: make a bit more use of cavalry
...
This was SVN commit r16983.
2015-09-04 17:47:54 +00:00
Itms
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
leper
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
Itms
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
mimo
c0d8645a6d
remove some unnecessary object<->array copies + some parentheses cleanup
...
This was SVN commit r16978.
2015-09-02 18:14:26 +00:00
Itms
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
Itms
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
Itms
8dde1cda94
Style cleanup, and remove a wrong TODO.
...
This was SVN commit r16974.
2015-09-02 17:40:31 +00:00
Itms
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
mimo
bcc75b2156
fix buggy test
...
This was SVN commit r16972.
2015-09-02 17:11:29 +00:00
Itms
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
mimo
5ff31a1e33
small cleanup of unit_actions.js
...
This was SVN commit r16970.
2015-09-01 20:49:37 +00:00
mimo
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
mimo
025391db35
fix behavior when under alert, fixes #3273
...
This was SVN commit r16968.
2015-08-31 19:54:06 +00:00
leper
2c87ccb66e
Fix typo causing errors for building placement.
...
This was SVN commit r16967.
2015-08-30 23:07:25 +00:00
historic_bruno
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
Itms
8a8a3b8377
Revert a wrong piece of code from 63e42fbd31. Refs #3293
...
This was SVN commit r16965.
2015-08-30 20:32:22 +00:00
scythetwirler
1a15131d2d
Lobby bot optimizations.
...
This was SVN commit r16964.
2015-08-30 17:50:16 +00:00
Itms
63e42fbd31
Display which player(s) are OOS when it happens. Also fix some encoding issues with file paths.
...
Patch by elexis, fixes #3293 .
This was SVN commit r16963.
2015-08-30 17:47:18 +00:00
Itms
f47cb2c711
Fix the OOS reported by elexis in #3335 , and clean some whitespace and style.
...
The list of modified entities was thrown out on global visibility
updates (those happen on rejoin) but only in-world entities were
actually updated then, causing problems with garrisoning.
Now the list of modified entities can happen to be large, so replace the
hacky check for infinite loops by a real check.
This was SVN commit r16962.
2015-08-30 17:42:10 +00:00
JoshuaJB
45a39e7dfd
Fix 3171 by moving some logic to C++. These changes do not optimize the presence buffer and only fix the state bug.
...
This was SVN commit r16961.
2015-08-30 12:56:48 +00:00
leper
2aef62d65f
Handle backrefs properly for maps and sets. Fixes #3374 .
...
Allocate the tag for the backreference before deserializing the content,
to match the order of serializing.
This was SVN commit r16959.
2015-08-30 04:51:16 +00:00
leper
acf7b7aefb
Some gamesetup and in-game messages code convention related cleanup. Based on patch by elexis.
...
This was SVN commit r16958.
2015-08-30 03:34:07 +00:00
leper
870237cce4
Do not create range queries in case we aren't at war with anyone. Fixes #3382 .
...
This was SVN commit r16957.
2015-08-30 02:49:49 +00:00
leper
8befb23db3
In-game chat code cleanup. Based on patches by elexis.
...
This was SVN commit r16956.
2015-08-30 02:21:17 +00:00
leper
57f340f906
Fix player rejoins. Refs #3242 .
...
This was SVN commit r16955.
2015-08-30 02:03:50 +00:00
leper
c9893b3dd0
Test serialization of nested maps. Refs #3164 , #3374 .
...
This was SVN commit r16954.
2015-08-30 00:06:39 +00:00
leper
90a99a1589
Prevent observers from using most chat commands. Refs #2879 .
...
Chat prefixed with /all could circumvent the check. Fix this by only
allowing /me.
(Note that this is not a full solution, see #3270.)
Refactors the cheat and chat input code based on changes in some of
elexis' patches.
This was SVN commit r16953.
2015-08-29 23:30:41 +00:00
leper
a67b3b8942
UnitAI cleanup. Setup*RangeQuery. Refs #3080 .
...
Do not create range queries when being destructed.
rangeMan -> cmpRangeManager.
This was SVN commit r16952.
2015-08-29 22:49:52 +00:00
leper
8217fa1a0e
Warn about range queries that can never return any results.
...
This was SVN commit r16951.
2015-08-29 22:49:49 +00:00
leper
6f0850f6bc
Improve UnitAI's FindNearby* functions.
...
Stop them from starting a range query in case we have no ownership (or
-1).
Make use of Array.find() to make them a bit nicer.
This was SVN commit r16950.
2015-08-29 22:49:46 +00:00
leper
31113cb8c3
UnitAI cleanup.
...
Use Array.{some,every,forEach,find} to simplify existing code.
Also make use of some fat arrow functions.
Some code style fixes.
Let FindNewHealTargets call RespondToHealableEntities to remove code
duplication.
This was SVN commit r16949.
2015-08-29 22:49:44 +00:00
leper
5a7b4e380a
Rename some occurences of *Man to cmp*Manager.
...
This was SVN commit r16948.
2015-08-29 22:49:42 +00:00
leper
2b1c128b66
Change the attack hotkey to Ctrl.
...
This is both easier to press, and also does not introduce any hotkey
conflict.
This was SVN commit r16947.
2015-08-29 22:49:38 +00:00
leper
39343a8c84
Fix test failure.
...
This was SVN commit r16946.
2015-08-29 22:49:32 +00:00
Itms
e56dddbefb
Optionally allow observers to rejoin a game when they weren't here during the game setup.
...
Patch by elexis, fixes #3242 .
This was SVN commit r16945.
2015-08-28 20:20:10 +00:00
Itms
8e70140ec2
Handle properly static shapes that overlap the edge of the map (likely to happen with square maps).
...
This should fix #3364 .
This was SVN commit r16944.
2015-08-28 11:38:14 +00:00
mimo
d31ebaa47a
add a new Repairable component defining a ratio of repairTime/buildTime for repairable entities. Fixes #633
...
This was SVN commit r16943.
2015-08-27 20:31:10 +00:00
leper
34555ad70c
Enhance i18n extractor to support a single context for a json file. Patch by elexis. Refs #3355 .
...
This was SVN commit r16942.
2015-08-27 19:07:36 +00:00
Itms
d129ae3cd8
Fix a special situation where map control percentage wasn't computed properly.
...
Also improve the code and fix a typo.
Based on patch by s0600204, fixes #3378 .
This was SVN commit r16941.
2015-08-27 16:26:32 +00:00
mimo
e3208c8784
fix rallyPoint on foundation, (it worked only by chance because all structures are repairable)
...
This was SVN commit r16940.
2015-08-25 15:39:11 +00:00