elexis
22f5b00fce
Implement network-warnings, fixes #3264 .
...
Shows a notification if the local client or other players connections
timeout or have bad latency.
This was SVN commit r17730.
2016-02-04 17:14:46 +00:00
mimo
4d41bd9622
reorganize options, adding dependences, refs #3737
...
This was SVN commit r17729.
2016-02-02 21:50:00 +00:00
elexis
6052716a78
Random-map-script cleanup.
...
Move duplicate code of the area- and object-group placing methods to
retryPlacing and two coordinate-randomization functions.
Remove three unused functions (println obsolete since 0e0ed94926 ,
chooseRand and its helper argsToArray since before 34f1817869 ).
Inline local calls to GetMapSize() and IsCircularMap(). Keep unused
isCircularMap for API access. Cache variables when retrying.
Map-generation can finish 2% faster.
This was SVN commit r17728.
2016-02-02 16:33:36 +00:00
elexis
fdc67768f0
Random random-map-script cleanup.
...
Simplify sortPlayers.
Use [] instead of new Array.
Remove unneeded braces.
Use JSDoc comments.
Use let instead of var.
This was SVN commit r17727.
2016-02-02 13:35:03 +00:00
elexis
b1fbc5b6bd
Add newlines, remove unneeded braces.
...
This was SVN commit r17726.
2016-02-02 11:23:01 +00:00
elexis
254f6357f6
Fix a typo (terreins -> terrains).
...
This was SVN commit r17725.
2016-02-02 10:56:39 +00:00
mimo
d8b0404281
petra: some tweaks to be able to better deal with maps like the Migration scenario
...
i.e. maps with a small starting island, no initial population and no
initial gathering food
This was SVN commit r17723.
2016-01-29 19:41:34 +00:00
mimo
30bd2baeeb
fix Migration scenario map
...
This was SVN commit r17722.
2016-01-29 18:53:09 +00:00
mimo
b65f2a338c
petra cleanup
...
This was SVN commit r17720.
2016-01-28 19:44:18 +00:00
mimo
c46e64c4d2
fix dropdown option
...
This was SVN commit r17719.
2016-01-28 18:44:50 +00:00
mimo
30d0bcd350
petra remove some useless code
...
This was SVN commit r17718.
2016-01-28 18:30:39 +00:00
mimo
75d91c6a26
petra: fix account of foundation popbonus when checking if new houses are needed
...
This was SVN commit r17717.
2016-01-27 18:30:49 +00:00
mimo
06eadf2bc4
petra cleanup + some tweaks
...
This was SVN commit r17716.
2016-01-27 18:17:55 +00:00
mimo
564941c477
fix wall buildings after f34dc412b6, refs #3647
...
This was SVN commit r17715.
2016-01-26 19:04:29 +00:00
mimo
91ed318f0d
fix typo
...
This was SVN commit r17714.
2016-01-26 18:36:59 +00:00
mimo
08d326cef5
clone the rallypoint data from cmd, fixes #3751
...
This was SVN commit r17713.
2016-01-26 18:03:06 +00:00
elexis
090f2ccfe5
Don't modify the command object. Refs #3647 .
...
This was SVN commit r17712.
2016-01-26 17:58:15 +00:00
mimo
bb8ceba632
completes f34dc412b6 for non visual replays, refs #3751
...
This was SVN commit r17711.
2016-01-25 20:37:26 +00:00
elexis
ab16ddb256
Show a more specific disconnect-message in case the host closed the server. Refs #3264 , #3570 .
...
This was SVN commit r17710.
2016-01-25 12:56:30 +00:00
elexis
3ec3f0b160
Stop the animations at the end of visual replays, refs #3581 .
...
This was SVN commit r17709.
2016-01-25 10:23:03 +00:00
elexis
e683751b4f
Delete code which became obsolete with 56bb858802.
...
This was SVN commit r17708.
2016-01-25 09:57:33 +00:00
elexis
68f87cb556
Proportionally adapt cost for civ-specific fortresses since the generic template was changed in 6b9b863747.
...
Thanks Hannibal Barca for reporting.
This was SVN commit r17706.
2016-01-25 00:38:33 +00:00
mimo
4a58c7f8b6
petra: improve performance of docks positioning (was really slow) + some cleanup
...
This was SVN commit r17705.
2016-01-24 20:43:27 +00:00
elexis
7c6f35b2c0
Update the unit selection for observers, refs #3168 .
...
Don't disable the deselect button.
This was SVN commit r17704.
2016-01-24 12:33:34 +00:00
Yves
199d38dfec
Work around clang bug to fix compiling.
...
This was SVN commit r17703.
2016-01-24 10:34:38 +00:00
historic_bruno
4bff1ef1a9
Disables MSVC build warning C4003 "not enough actual parameters for macro", introduced by changes in Boost 1.57
...
This was SVN commit r17700.
2016-01-24 01:03:39 +00:00
elexis
aa8541e8ce
2-player skirmish map "Golden Island". Created by scythetwirler and updated by niektb.
...
This was SVN commit r17697.
2016-01-23 23:02:25 +00:00
Yves
1a66f510d0
Use const T& for parameters of some types in script-exposed native functions
...
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.
This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
Yves
5f86beea6f
Replace HandleWrapper and avoid repoint function
...
JS::Handle<T>::repoint gets removed with SpiderMonkey 38, so the
existing solution has to be replaced. The new approach should also be a
bit clearer. Named Return Value Optimization (NRVO) should avoid a
superfluous temporary for the return value in the generic template
function implementation of AssignOrFromJSVal.
Refs #3708
This was SVN commit r17695.
2016-01-23 14:42:59 +00:00
historic_bruno
b9f1125010
Fixes memory leak in TestPreprocessor. When using CPreprocessor::Parse "you must free() the result string only if the returned address is not inside the source text"
...
This was SVN commit r17693.
2016-01-23 03:48:00 +00:00
elexis
27d04d0165
Close previously opened dialogs before opening a new one. Fixes #3535 . Also remove many duplicate calls.
...
This was SVN commit r17692.
2016-01-23 03:40:31 +00:00
elexis
4fbd550cda
Correct z-ordering issue for chat panel and input form. Patch by dalerank, refs #3535 .
...
This was SVN commit r17691.
2016-01-23 03:24:00 +00:00
elexis
c97a91f7bd
Change displayed string instead of throwing errors in case of unspecified civs in replays.
...
This was SVN commit r17690.
2016-01-23 02:41:35 +00:00
elexis
5747619c39
Don't create replays without commands in case of running non-visual replay or an atlas simulation.
...
Remove trailing whitespace.
This was SVN commit r17689.
2016-01-23 01:02:57 +00:00
mimo
dd7287c1c8
additionnal petra cleanup
...
fix a case with foundation access not defined
This was SVN commit r17688.
2016-01-22 19:46:51 +00:00
mimo
c955d74330
petra cleanup (thanks to leper's suggestion)
...
This was SVN commit r17687.
2016-01-22 18:45:28 +00:00
mimo
fdf7dabe18
check that the target can be built or repaired inside the canRepair function
...
This was SVN commit r17685.
2016-01-21 20:49:57 +00:00
mimo
edb16dafbb
petra cleanup
...
This was SVN commit r17684.
2016-01-21 20:38:56 +00:00
mimo
df7da846ad
some cleanup in ai api
...
This was SVN commit r17683.
2016-01-21 20:23:19 +00:00
elexis
b5cb62ffa2
Remove error messages from the CinemaManager, since not having a GameView is expected in non-visual replay. Patch by Vladislav, refs #3301 .
...
This was SVN commit r17682.
2016-01-21 13:07:52 +00:00
mimo
cccd33e7fe
petra cleanup
...
This was SVN commit r17679.
2016-01-20 19:45:47 +00:00
mimo
87886b7b03
fix the AI for the switch to the Repairable component
...
This was SVN commit r17678.
2016-01-20 19:04:38 +00:00
mimo
dd545bdbf1
petra cleanup
...
This was SVN commit r17677.
2016-01-19 23:19:40 +00:00
elexis
0a64bf25cd
Sort globals, add JSDoc comments, remove trailing whitespace.
...
This was SVN commit r17676.
2016-01-19 18:09:34 +00:00
elexis
5308b95aa8
Let observers change perspective. Refs #3168 .
...
Disable the controls for observers (unless the developer-option is
enabled).
Don't check for g_IsObserver, since observers should be able to use the
developer overlay as well.
Update all GUI elements when changing the perspective using
onSimulationUpdate().
Enable observermode for defeated players.
This was SVN commit r17675.
2016-01-19 17:23:16 +00:00
elexis
0e48b7df75
Update the idle-worker-button onSimulationUpdate. Patch by svott, fixes #3736 .
...
This was SVN commit r17674.
2016-01-19 16:04:59 +00:00
leper
f34dc412b6
Deep freeze simulation commands to prevent accidental updates. Fixes #3647 .
...
This was SVN commit r17673.
2016-01-18 22:24:50 +00:00
elexis
e035e3e985
Restore the replay selection after deletion. Based on patch by dalerank, fixes #3473 .
...
This was SVN commit r17672.
2016-01-18 20:16:45 +00:00
mimo
a6f8b3b3d7
rename the Close button, refs #3737
...
This was SVN commit r17671.
2016-01-18 19:44:48 +00:00
elexis
a59833102f
Specify the default column sorting order in XML instead of JS.
...
Ref #2405 , #3473 .
This was SVN commit r17670.
2016-01-18 19:23:14 +00:00