mimo
eacbdd4dfb
cleanup in the petra queueManager
...
This was SVN commit r17438.
2015-12-11 18:45:03 +00:00
mimo
489822e384
some cleanup in the ai common-api
...
This was SVN commit r17437.
2015-12-11 18:35:01 +00:00
elexis
925b2910fe
Fix whitespace and remove the placeholder functions initHostControls and initFinalize (see previous commit).
...
This was SVN commit r17436.
2015-12-11 18:33:09 +00:00
elexis
7b9c1e23db
Major gamesetup cleanup.
...
Split the 280-line function initGUIObjects (former initMain) into
sixteen short functions.
Do not correct indentation in this commit in order to have the smallest
changeset possible, highlighting the actual changes
[the only logic change being mapTypes.selected and mapFilters.selected
being set one function (initMoreOptions) earlier].
This was SVN commit r17435.
2015-12-11 18:20:45 +00:00
wraitii
48e3959391
Change the "Summary" button from the top bar to the menu to help support our minimal resolution.
...
Disable said button for non-observers.
Refs #3387 .
This was SVN commit r17434.
2015-12-11 15:49:33 +00:00
elexis
4a81d53f3b
Gamesetup cleanup.
...
Rename initMain to initGUIObjects to clarify what the function does.
While init() sets globals without touching the GUI, initGUIObjects
updates all GUI controls after the first tick.
Rename loadGameAttributes to loadPersistMatchSettings as that's more
specific as to where the attributes are loaded from.
Add some JSDoc comments and a TODO for an annoying old bug.
Simplifiy to-boolean conversions by negating twice (!!)
This was SVN commit r17433.
2015-12-11 14:11:33 +00:00
elexis
682a7b3ba0
Gamesetup cleanup.
...
Don't define variables inside switch-statements.
Move chat-font to global.
Rename host and an i to guid, newPlayer to newGUID to be more coherent.
Do early continues when finding joinings/leavings and swapping players.
This was SVN commit r17432.
2015-12-11 11:55:16 +00:00
elexis
c32a2b52be
Gamesetup cleanup.
...
Simplify initMapNameList.
Remove six superfluous checks.
Remove two unneeded variables in updatePlayerList.
This was SVN commit r17431.
2015-12-11 10:17:44 +00:00
elexis
42548698c5
Gamesetup cleanup.
...
Replace more var by let.
The only remaining places to update are switch-statements.
This was SVN commit r17429.
2015-12-11 00:21:04 +00:00
elexis
df86b15b91
Gamesetup cleanup.
...
Simplify by using array functions, the ternary operator and unifying
duplicate code.
Move map-paths to a global.
This was SVN commit r17428.
2015-12-11 00:02:18 +00:00
mimo
d07f16ed80
petra: fix resource translations, fixes #3691
...
This was SVN commit r17427.
2015-12-10 20:35:24 +00:00
mimo
afa07325a1
petra: improve the detection of stuck gatherers, refs #3562
...
This was SVN commit r17426.
2015-12-10 20:02:37 +00:00
mimo
a74d9be130
make const the new method introduced in 2451872731
...
This was SVN commit r17425.
2015-12-10 19:23:50 +00:00
elexis
57260e185b
Use let instead of var in the gamesetup.
...
Doing so follows the principle of least exposure and means those
variables will be destroyed when leaving the block (i.e. memory being
freed up earlier).
The blocks affected by this commit are short (mostly 3-5 lines).
The variables are not referenced before or after the block, nor in their
temporal dead zones.
This was SVN commit r17424.
2015-12-10 17:44:14 +00:00
wraitii
e57c99c6f6
Add a button to the top bar to access the summary screen in-game or in replays.
...
No effort was done to prevent players from accessing it since it's
impossible to prevent them from doing so anyway.
Fixes #3387 .
This was SVN commit r17423.
2015-12-10 15:33:06 +00:00
elexis
4dcbad7b1b
Simplify init() and initMain(). Exit gracefully in case of encountering an error there.
...
Do not focus the maplist when entering the singleplayer gamesetup as
that actually doesn't have an effect (you can't scroll the maplist with
arrow-keys).
This was SVN commit r17422.
2015-12-10 14:24:03 +00:00
elexis
9b4e359d64
Gah.
...
This was SVN commit r17421.
2015-12-10 13:28:57 +00:00
elexis
223305b7ae
Simplify sendRegisterGameStanza by using the conditional operator and removing four variables which are used only once.
...
This was SVN commit r17420.
2015-12-10 13:20:45 +00:00
elexis
7a8c37a885
Use map function instead of deprecated for-each.
...
This was SVN commit r17419.
2015-12-10 13:06:36 +00:00
elexis
63fa889fcd
Rename playableOnly to selectableOnly as non-selectable civs can be playable on scenario maps.
...
This was SVN commit r17418.
2015-12-10 12:52:38 +00:00
elexis
af4dc43478
Revert the removal of non-selectable civs from the gamesetup ( bbc325fb5a) to allow scenario maps to select unselectable civs.
...
This was SVN commit r17417.
2015-12-10 12:49:53 +00:00
leper
349b5786dd
Fix test failure. Refs #3590 .
...
This was SVN commit r17416.
2015-12-09 22:52:33 +00:00
mimo
b6dbb2bff0
fix tabs of 2451872731
...
This was SVN commit r17415.
2015-12-09 20:56:53 +00:00
mimo
2451872731
improve performance of hierarchical pathfinder, refs #3588
...
This was SVN commit r17413.
2015-12-09 19:56:30 +00:00
fabio
73a26a22ca
Enable by default postproc, smoothlos and all water features when on OpenGL4+.
...
This autodetection has a higer priority than default.cfg, but lower
priority than local changes.
Note that after enabling these features some get disabled later on on
some drivers (Intel, software renderers).
Also note that mesa drivers only expose core profile OpenGL, and 0 A.D.
reads compatibility profile, so that on mesa drivers OpenGL4 is never
detected and these features are never enabled by default.
This was SVN commit r17412.
2015-12-09 16:12:58 +00:00
fabio
07f0a178f4
Fixes what looks a copy-paste error.
...
Makes disable_allwater setting in hwdetect.js what it was supposed to
do.
This was SVN commit r17411.
2015-12-09 11:35:40 +00:00
fabio
a5152c14d1
Properly use the passed parameter as all other occourences.
...
Fixes 'disable_allwater = false' case in hwdetect.js.
This was SVN commit r17410.
2015-12-09 11:28:24 +00:00
mimo
6a73dc2e16
fix multiple (useless) insertion in grid update of hierarchical pathfinder
...
This was SVN commit r17409.
2015-12-08 22:58:04 +00:00
leper
b4f0227f1b
Add support for undeletable entities. Fixes #3590 .
...
This was SVN commit r17408.
2015-12-08 22:34:32 +00:00
mimo
82ca673e0a
petra: retune the dock placement criteria, fixes #3469
...
This was SVN commit r17407.
2015-12-08 19:16:50 +00:00
leper
489e41362a
Use placeholder in plural string.
...
This was SVN commit r17406.
2015-12-08 18:13:09 +00:00
leper
fd32da5c87
Update tinygettext.
...
Updates tinygettext to upstream commit
328f015d0b07465c8a5a05cbfc0a41154a2f8ebf.
This adds better collision logging.
This was SVN commit r17405.
2015-12-08 18:05:11 +00:00
leper
61886f0e7a
Use inheritance instead of redefining properties.
...
This was SVN commit r17404.
2015-12-08 18:05:06 +00:00
JoshuaJB
80663a6c8a
Add gray, stone-esc modern button type.
...
This was SVN commit r17403.
2015-12-07 18:47:41 +00:00
elexis
71cd4ac3cc
Simplify input.js. Unify checks, remove unneeded variables and use the conditional operator.
...
This was SVN commit r17401.
2015-12-07 13:45:50 +00:00
elexis
780a1de136
Don't comment out code. Refs #3486 .
...
This was SVN commit r17400.
2015-12-07 12:27:52 +00:00
elexis
8af675e207
Don't emit sounds when selecting dead animals. Patch by Stan. Fixes #3486 .
...
This was SVN commit r17399.
2015-12-07 00:21:24 +00:00
elexis
9e39d6b46c
Implement markForPluralTranslation() which allows to translate plural-strings sent by the simulation.
...
Use it for the build-restriction notifications.
Based on patch by Safa Alfulaij, fixes #3081 .
This was SVN commit r17398.
2015-12-06 23:56:03 +00:00
leper
66bb4deef8
Use the tech name as it is used everywhere else.
...
This was SVN commit r17397.
2015-12-06 21:29:09 +00:00
mimo
d5e083247a
fix 66bd932374 which has increased too much the repair specificness: it should be higher than the capture one, but smaller than the move one. refs #3443
...
This was SVN commit r17396.
2015-12-06 21:02:04 +00:00
leper
3483a2d226
Extract attack notification strings. Refs #3691 .
...
This was SVN commit r17395.
2015-12-06 20:51:32 +00:00
leper
abd7b78b02
Return the boolean test instead of having an if-return return.
...
This was SVN commit r17394.
2015-12-06 20:51:30 +00:00
elexis
2bd22bb6a8
Fix whitespace.
...
This was SVN commit r17393.
2015-12-06 17:13:47 +00:00
elexis
0462829579
Use more plural translations for tooltips. Patch by Safa Alfulaij. Refs #3081 .
...
This was SVN commit r17392.
2015-12-06 16:56:46 +00:00
elexis
953e745067
Do a more explicit sanitycheck in loadCivData (in case we encounter the value false).
...
Make that viking boat gaia which is more coherent with the other
eastereggs.
This was SVN commit r17391.
2015-12-06 15:30:49 +00:00
elexis
21f032c305
Ignore the "user" mod when checking the compability of replays and savegames.
...
This was SVN commit r17390.
2015-12-06 14:00:03 +00:00
elexis
84678cf40e
Tune lobby rating alignment and remove a TODO that won't be fixed due to uglyness.
...
This was SVN commit r17389.
2015-12-06 13:21:41 +00:00
elexis
cff6056e9f
Lobby cleanup.
...
Remove unneeded 4 globals and 2 functions used for sorting the lobby
lists.
This was SVN commit r17388.
2015-12-06 12:13:06 +00:00
elexis
66ec6dbf12
Lobby cleanup.
...
Actually define these variables and revert to sorting by state for
gamelists by default (despite not having a column to sort for that).
This was SVN commit r17387.
2015-12-06 11:42:30 +00:00
scythetwirler
987a7028bd
Implements relative templates. Fixes #2936 . Thanks to leper, wraitii, historicbruno and everyone else that helped.
...
This was SVN commit r17386.
2015-12-05 17:02:25 +00:00