b05879e151
Move template items GetRetainInFog and AlwaysVisible from Vision to Visibility.
...
Refs #2913
This was SVN commit r16022.
2014-12-05 18:33:59 +00:00
7e0e566346
Fix typo in include. Refs #2086 .
...
This was SVN commit r16018.
2014-12-03 16:43:51 +00:00
3c45599be5
fix default ai difficulty when using autostart, was easy since f90841cf78
...
This was SVN commit r16015.
2014-11-30 16:35:32 +00:00
1cc19e9176
Specify that my templatesanalyzer tool is distributed under the MIT license. Thanks to leper for noticing that it was currently unspecified.
...
This was SVN commit r16014.
2014-11-30 16:28:04 +00:00
759a6701f6
Fix test build.
...
The parser that extracts the methods to call does not care about
defines.
This was SVN commit r16013.
2014-11-29 21:26:01 +00:00
1430efa9d6
Properly handle auto-research promotion techs at game start.
...
This was SVN commit r16009.
2014-11-25 22:47:02 +00:00
87d5d37488
Some source string fixes.
...
This was SVN commit r16002.
2014-11-22 22:21:54 +00:00
c385a88c88
Remove unused overload of GetSavedGameData
...
This was SVN commit r16001.
2014-11-22 19:46:24 +00:00
504e23acb8
Make some things static.
...
This was SVN commit r15997.
2014-11-20 22:19:33 +00:00
335ac3d0cb
Query /proc for the executable path on Linux. Patch by starslayer. Refs #2086 .
...
Factor out unix_ExecutablePathname() which is used by BSDs and Linux (as
a fallback).
This was SVN commit r15996.
2014-11-20 22:19:21 +00:00
8a66a732c7
Add "Copy" and "Paste" entries to the Atlas "Edit" menu. Patch by stilz_, fixes #2642 .
...
This was SVN commit r15994.
2014-11-20 20:52:32 +00:00
1abd5669c9
Replace spaces in source file paths with non-breaking spaces. Refs #2539 .
...
This way our map file paths are not split due to word wrapping in the po
files.
This was SVN commit r15993.
2014-11-19 23:10:51 +00:00
f90841cf78
add a very-easy level for AI, addresses #2899
...
This was SVN commit r15990.
2014-11-18 21:21:21 +00:00
3589aa39b9
Update documentation on how to generate the entity component documentation.
...
This was SVN commit r15987.
2014-11-18 03:57:21 +00:00
afecbf02f3
Extend the config parser to support ini-style config files. Refs #1810 .
...
Config settings in a section are stored as "sectionname.setting"
internally.
Do not write section headers when writing config files as we would need
to write
settings without a dot first or ignore them. This can be changed once
all settings
belong to a section.
This was SVN commit r15986.
2014-11-18 03:57:07 +00:00
73de625089
Also change GameSetup.cpp.
...
This was SVN commit r15985.
2014-11-18 00:24:29 +00:00
9407dbe45e
Remove useless parameter from CFG_GET_VALUE.
...
This was SVN commit r15984.
2014-11-17 23:29:49 +00:00
6695f1a3e8
Remove CParser. Fixes #2589 .
...
This was SVN commit r15981.
2014-11-17 01:04:24 +00:00
b995135138
Use an FSM to parse our config files instead of using CParser. Refs #2589 .
...
Properly write config settings with multiple values back to files. Refs
#1810 .
Print error messages if we encountered an invalid setting.
This was SVN commit r15980.
2014-11-17 01:03:59 +00:00
f88ee2766e
use by default a random seed for the AI to make it less repetitive
...
This was SVN commit r15973.
2014-11-16 19:53:29 +00:00
59676dfc84
Update tools/LICENSE.txt
...
This was SVN commit r15970.
2014-11-16 02:10:31 +00:00
df4c07238d
Change GUI tag parsing to use a FSM instead of using CParser. Refs #2589 .
...
Parameters now have to be quoted with ".
Supports " in parameters by escaping them with \.
Tag start characters can be included in normal text by escaping them
with \.
Better error handling and a error messages to help with fixing
invalid/malformed strings.
This was SVN commit r15969.
2014-11-16 02:10:28 +00:00
d15e2f0cf6
Check for availability of XmppClient.
...
Move Lobby script function registration to the lobby JS interface.
This was SVN commit r15968.
2014-11-16 02:10:24 +00:00
d58189d510
Parse terrain properties without CParser. Refs #2589 .
...
This was SVN commit r15967.
2014-11-16 02:09:02 +00:00
fc1fe174cd
Amend the "Reveal All" behavior by always hiding mirages.
...
This was SVN commit r15966.
2014-11-14 20:29:35 +00:00
4d89820f1c
Fixes build errors on Windows introduced in c813a11427
and 1a0f9b086e
.
...
This was SVN commit r15964.
2014-11-13 22:37:43 +00:00
49a31c5de2
prevent events from the first turn after deserialization to be thrown away
...
This was SVN commit r15962.
2014-11-13 20:21:00 +00:00
c813a11427
Split ScriptRuntime and ScriptInterface code to separate files.
...
The runtime is becoming more and more important in the JSAPI. As a
result, we also have more functionality on the runtime level and having
the whole ScriptRuntime class hidden in ScriptInterface.cpp doesn't make
sense anymore. ScriptInterface.cpp also has become quite a large file
and pulling out the runtime part makes it a bit smaller.
Refs #2462
This was SVN commit r15961.
2014-11-13 11:19:28 +00:00
1a0f9b086e
GUI cleanup.
...
Remove toTitleCase(). Unify iColorToString() and rgbToGuiColor().
Translate XMPP errors (displayed when connecting).
This was SVN commit r15960.
2014-11-13 01:26:36 +00:00
6e788fb15e
Clean up JSON parsing code. Refs #1374 .
...
Fix Engine.ReadJSONFile() which did throw a JS exception that was not
caught. Discovered by s0600204.
Expose Engine.ReadJSONFile() to the gui scripts.
This was SVN commit r15959.
2014-11-13 01:26:22 +00:00
e108b162b6
Add hotloading for translation files. Fixes #2915 .
...
This was SVN commit r15947.
2014-11-09 16:58:14 +00:00
8b9847e007
Replace CScriptValRooted with JS::Heap<T> and custom tracer for CNetClient
...
Refs #2462
This was SVN commit r15946.
2014-11-09 15:16:00 +00:00
8e2d514228
Exact stack rooting for CParamNode
...
Refs #2415
Refs #2462
This was SVN commit r15944.
2014-11-09 11:08:53 +00:00
edd9622050
wip petra support of saved games, still incomplete
...
This was SVN commit r15940.
2014-11-08 19:23:29 +00:00
f4b5054815
Fix valgrind warning about uninitialized variable. Patch by Echelon9. Fixes #2878 .
...
This was SVN commit r15936.
2014-11-08 00:37:42 +00:00
7dad37c78f
Some cleanup. Fix a comment.
...
This was SVN commit r15928.
2014-11-05 00:22:14 +00:00
d07d1a17f3
Add a new Visibility component that will eventually allow scripted components and mods to influence an entity's visibility.
...
This first commit only refactors code and does not add any new feature.
Refs #2913 (see this ticket for more information about the change)
This was SVN commit r15925.
2014-11-04 20:53:25 +00:00
199eb46d86
Fixes GLES build
...
This was SVN commit r15914.
2014-10-29 02:36:42 +00:00
10d13a991c
Use fitplural added in upstream revision 1404284. Refs #2539 .
...
This was SVN commit r15913.
2014-10-28 16:03:19 +00:00
7f1fd01174
Moves some includes out of Renderer.h to slightly optimize compilation
...
This was SVN commit r15912.
2014-10-28 03:57:22 +00:00
ff50b0b74c
Fixes incorrect input handling in dropdowns and lists, they were manually handling all events, but should only handle certain key presses. Fixes #2885 .
...
Fixes bug where lists/dropdowns could select an invalid index.
This was SVN commit r15909.
2014-10-27 04:37:06 +00:00
570b0374f4
Convert path separator after building the full path.
...
This was SVN commit r15908.
2014-10-27 03:09:36 +00:00
d06ecc1b89
Fixes some errors in i18n scripts: use ASCII quotes to avoid charset errors in Windows command line, and use function form of print
...
This was SVN commit r15907.
2014-10-27 02:42:06 +00:00
e3e86e2a29
Fixes init of post processing effects, so they can be cleanly enabled/disabled at runtime. Fixes #2890 , refs #2672 , #2893 .
...
Updates descriptions on options screen and fixes comment in default.cfg
(smoothlos does not require preferglsl)
This was SVN commit r15905.
2014-10-27 00:53:31 +00:00
4a68170aeb
Add msgstrs for plural forms to pots.
...
This was SVN commit r15904.
2014-10-26 17:25:12 +00:00
b4997dc7c6
Fixes minimap GLES compatibility by making point size a uniform and passing into the shaders
...
This was SVN commit r15901.
2014-10-26 04:37:26 +00:00
7f247580b3
Remove outdated bundled transifex client. Fixes #2789 .
...
Anyone wanting to pull updates from transifex should install the client.
This was SVN commit r15896.
2014-10-26 00:28:41 +00:00
ae10d34d99
Switch i18n scripts to use Pology. Fixes #2539 .
...
Still requires a patch to Pology to keep the source file ordering.
This was SVN commit r15894.
2014-10-26 00:28:35 +00:00
6334ee3f8b
Reverts 03eaf9b461
due to licensing issues (source/lib is MIT licensed) and replaces with compatible FreeBSD/clang-based solution, patch by pstumpf. Refs #2675
...
This was SVN commit r15890.
2014-10-18 20:45:11 +00:00
c65817829f
Adds compatibility for XMPP differences between platforms that can cause case inconsistencies.
...
This was SVN commit r15888.
2014-10-18 14:28:46 +00:00
03eaf9b461
Fixes cpuid to work with i386 CPUs and PIE/PIC, based on old GCC cpuid.h source and patch by pstumpf, fixes #2675
...
This was SVN commit r15886.
2014-10-18 03:07:24 +00:00
1631b8de14
Fixes Atlas error when using the map open/save dialog on Linux, based on patch by njm, fixes #2858
...
This was SVN commit r15885.
2014-10-18 01:53:06 +00:00
18ab827886
Change L10n code to use ps/Singleton, so that we can recreate it.
...
This allows for adding locales in mods.
This was SVN commit r15874.
2014-10-15 16:04:37 +00:00
227d828b67
Updates Windows version strings for 8.1 and 10 (technical preview)
...
This was SVN commit r15869.
2014-10-14 21:37:19 +00:00
6ec902ec20
Fix a typo in the packaging scripts.
...
This was SVN commit r15857.
2014-10-12 20:53:13 +00:00
849cbc13ee
Fix path in fontbuilder.
...
This was SVN commit r15852.
2014-10-12 19:27:55 +00:00
46fd718ac1
Initialize some variables. Patch by Echelon9. Fixes #2862 .
...
This was SVN commit r15851.
2014-10-12 19:27:49 +00:00
3c8ef99007
Switch lobby room. Update mod version.
...
This was SVN commit r15850.
2014-10-12 19:27:42 +00:00
a028027f75
Fix previous commit.
...
This was SVN commit r15847.
2014-10-05 22:46:24 +00:00
41ea9539a2
Update the translations selection script to match our choices for A17.
...
This was SVN commit r15846.
2014-10-05 22:05:22 +00:00
5d9d9a67bf
Allow enabling the post processing filters during a game.
...
Includes numerous code updates, also updated the copyright for
cd5de73f3a
.
Patch by dan@sstrev.com , fixes #2672 .
This was SVN commit r15843.
2014-10-05 20:50:10 +00:00
cd5de73f3a
Allow setting the "Smoothing LoS" option during a game.
...
Patch by dan@sstrev.com , fixes #2513
This was SVN commit r15841.
2014-10-05 20:02:04 +00:00
69c8b89f84
Fixes blank window after maximizing, minimizing, then restoring the game on Windows. In SDL2, this is an SDL_WINDOWEVENT_EXPOSED event, which we must handle to reset the game's minimized state. Refs #2041
...
This was SVN commit r15832.
2014-10-04 00:46:53 +00:00
5a985e18f4
Modify GC scheduling and reduce VFS cache size.
...
It seems like there is a memory leak if we haven't finished with the
marking phase of an incremental GC and SpiderMonkey has to trigger a
full GC because it runs out of memory. With this patch we stop trying to
make incremental GCs if we are above 1/2 of the runtime size and do Full
GCs instead. This should make such low memory conditions even less
likely than they were already after the previous patch. Also reduce the
maximum VFS cache size to 400 MB.
Refs #2808
This was SVN commit r15831.
2014-10-04 00:43:04 +00:00
9c4eb0295a
Fixes some bugs related to IME text input in SDL2, including a possible crash, refs #2041 . Behavior seems reasonably consistent now on Windows and OS X
...
This was SVN commit r15830.
2014-10-03 23:33:41 +00:00
f10bdf5089
Fixes some issues when toggling fullscreen mode with SDL2, refs #2041 :
...
* SDL_WINDOW_RESIZABLE must be set when creating the window, apparently
only fullscreen flags take effect in SDL_SetWindowFullscreen
* Stores window position, so a window can be restored to both its
original position and size, rather than defaults
* Changes initial window position from undefined to centered, it caused
some problems with window positioning returning from fullscreen mode
This was SVN commit r15827.
2014-09-28 22:10:09 +00:00
2afeec0c01
Unify removal of incomplete translations in packaging scripts. Fixes #2825 .
...
This was SVN commit r15826.
2014-09-28 21:51:48 +00:00
5200ea0365
Fixes starting Atlas from in-game on OS X, patch by trompetin17, refs #2427
...
This was SVN commit r15821.
2014-09-28 07:03:51 +00:00
857698e231
Fix memory leak when loading mods from config.
...
This was SVN commit r15818.
2014-09-28 00:13:55 +00:00
0caab0429f
Fixes Reset Water Data button position in Atlas, fixes #2820
...
This was SVN commit r15815.
2014-09-27 02:42:42 +00:00
ea2db5386b
Fixes water rendering and crashes on GPUs without FBO support, fixes #2667
...
This was SVN commit r15814.
2014-09-27 01:32:03 +00:00
2f8ed7980d
Makes the bot more lenient on case sensitivity due to inconsistencies in case between Windows and Unix.
...
This was SVN commit r15813.
2014-09-27 01:06:28 +00:00
119aad9da9
fix a debug message
...
This was SVN commit r15811.
2014-09-26 17:07:17 +00:00
d1a31b3f54
Fixes regex for excluding translations from release packages, refs #2494
...
This was SVN commit r15800.
2014-09-25 02:07:46 +00:00
533fb6f7bc
Load the public mod by default. Fixes #2754 .
...
This was SVN commit r15796.
2014-09-24 17:49:22 +00:00
4753a0c1c2
Replace usage of "GUIs" in cxxtest with the command line,
...
and extend that to support -libdir <dir> and -disabled. Fixes #2488 .
This was SVN commit r15795.
2014-09-24 15:35:31 +00:00
29effb5089
Build fixes and improvements for BSDs. Fixes #2804 .
...
This was SVN commit r15793.
2014-09-24 14:11:13 +00:00
3b49576fa6
Tunes GC scheduling a bit to reduce memory usage.
...
The main problem was that GC was only called from the simulation before
this patch. This means when you were waiting in the multiplayer lobby or
just had the GUI open, it only called GC when getting close to the JS
runtime size limit (I assume). Another problem was the Net Server
runtime which didn't GC either. Here the runtime size limit is 16 MB
though, so it's not too terrible. These issues have both been addressed
and GC has been given a bit more time per incremental slice to make sure
it gets done in time. It's still far from perfect, but there are too
many changes in SpiderMonkey related to GC, so I don't want to spend too
much time on this yet.
Refs #2808
This was SVN commit r15787.
2014-09-22 20:13:04 +00:00
5593f573f4
Cleans up handling of SDL2 text input events, no behavior change expected.
...
Implements SDL2 text editing handler for input fields, this is for IME
support, so users entering CJK text can see what they're composing
before committing it. Should have no effect on SDL1 or normal text
input.
This was SVN commit r15785.
2014-09-22 19:00:20 +00:00
9592c59704
Fixes crash in Atlas color picker tool, noticeable with wxWidgets 3.0. Colors returned by wxColourData::GetCustomColour
aren't always valid, so we have to test them with IsOk()
before accessing them. Fixes #2805
...
This was SVN commit r15782.
2014-09-21 21:25:51 +00:00
b1ca37eead
Extend visibility update to all tiles around LoS vertices. Incidentally prevent an issue from arising on square maps. Also improve a code comment.
...
This should be enough to fix #2760 .
This was SVN commit r15779.
2014-09-21 20:29:54 +00:00
f5336c42b8
Adds Serialization support for ES6 Maps.
...
Also includes the patch from Sanderd17 to use Maps and Sets for the
Timer components. Sets can't be serialized yet, but in this case they
don't require serialization.
Refs #2475
This was SVN commit r15770.
2014-09-20 17:14:53 +00:00
6b2677a3fd
Adds profiles to the multiplayer lobby. Fixes #2504 .
...
This was SVN commit r15768.
2014-09-20 15:35:26 +00:00
d62e3729d5
Improves SDL2 support, includes patch by yashi and fabio, refs #2041 :
...
* Adds SDL color cursor implementation
* Adds config option for choosing preferred display in multimonitor
setup
* Uses text input API to better handle CJK input
* Fixes various hotkey and input bugs
SDL 1.2 is still the default and recommended, to test experimental SDL2
support, pass the --sdl2 flag to update-workspaces
This was SVN commit r15767.
2014-09-20 12:12:35 +00:00
801d13aa8b
Address some possible causes of bad handling of visibility updates. Also includes a little code tweaking allowing the global update of all visibility data.
...
Refs #2760
This was SVN commit r15765.
2014-09-20 08:26:45 +00:00
aa5fded9ae
This was SVN commit r15762.
2014-09-17 23:22:20 +00:00
c56407a1f8
Fixes autostart init of player data, patch by mimo, fixes #2798 .
...
Cleans up some of the autostart logic, removes and renames a few options
for clarity.
Updates readme.txt to reflect these changes and include some examples
This was SVN commit r15761.
2014-09-17 01:15:03 +00:00
66a2fe6308
Unload hotkeys on shutdown.
...
Fixes double registration of hotkeys on engine restart.
This was SVN commit r15755.
2014-09-15 01:27:06 +00:00
28c0b00b2e
Sorts games in gamesList by status, then name. Refs #2463 , #2448 .
...
This was SVN commit r15754.
2014-09-14 22:11:03 +00:00
113f72a503
Makes running games visible in the lobby. These will be colored in red. Refs #2463 , #2448 .
...
This was SVN commit r15751.
2014-09-14 20:59:35 +00:00
0f0f4f7b03
Fixes crash on OS X if dir_watch_Poll is called during init before dir_watch_Add, refs #2427 , #2650
...
This was SVN commit r15748.
2014-09-14 00:27:38 +00:00
60d92b643d
Fixes some unused variables in Atlas
...
This was SVN commit r15746.
2014-09-13 19:34:04 +00:00
01395ce96d
Fixes clang warning about hidden overloaded virtual function
...
This was SVN commit r15745.
2014-09-13 19:06:55 +00:00
70d81040cb
Fixes Atlas copy/paste not copying actor seeds, patch by trompetin17, fixes #2791
...
This was SVN commit r15742.
2014-09-13 16:53:43 +00:00
acd86047dc
Only split strings if they are non-empty. Fixes previous commit.
...
This was SVN commit r15737.
2014-09-12 23:11:03 +00:00
134e3c84b0
Clean up some code.
...
Fixes linker error on OSX.
This was SVN commit r15735.
2014-09-12 21:45:30 +00:00
a8189f89e5
Stop music when resetting the simulation test mode in Atlas.
...
Patch by trompetin17, fixes #1712
This was SVN commit r15734.
2014-09-12 21:38:10 +00:00
7ada7dd2a8
Some tweaks to profiler2:
...
* separate the HTTP profiling server from the on-screen profiler
* allow shutting down the HTTP profiler
* print messages when enabling/disabling HTTP and GPU profilers
Patch by kingbasil, fixes #1862
This was SVN commit r15723.
2014-09-09 18:17:08 +00:00
fee304d789
Fixes crash from 41b98a6f12
where a VBChunk* was released but not set to NULL
...
This was SVN commit r15721.
2014-09-09 04:13:50 +00:00
9c683af1e4
Fixes undefined property reference in Atlas after generating random map.
...
Fixes crash after failed random map generation in Atlas
This was SVN commit r15719.
2014-09-08 03:48:24 +00:00
881ad4090b
Fixes weird unconventional use of logical not operator that also triggered a warning in clang
...
This was SVN commit r15717.
2014-09-08 00:19:35 +00:00
3d1cd08a4c
Suppresses noisy clang/libc++ warnings from SpiderMonkey headers on OS X
...
This was SVN commit r15716.
2014-09-07 23:58:22 +00:00
41b98a6f12
Fixes incorrect reuse of a member variable in WaterManager, caused a crash when starting a new map in Atlas after loading a water map. Fixes #2784 .
...
Fixes likely mem leaks from not cleaning up vertex buffer allocations
This was SVN commit r15715.
2014-09-07 23:49:24 +00:00
7ce9097d1c
small cleaning of d0472b021b
...
This was SVN commit r15710.
2014-09-07 10:28:18 +00:00
d0472b021b
Supersede the "Reveal all" flag when displaying mirages, to avoid seeing other players' mirages. This is especially problematic when switching perspective to an AI player.
...
Fixes #2712 , thanks mimo for the report and for having looked into the
related code.
This was SVN commit r15705.
2014-09-06 19:59:49 +00:00
69bd930219
Excludes debug DLLs from Windows installer, fixes #855
...
This was SVN commit r15697.
2014-09-01 01:44:10 +00:00
5bfe2a4b65
Don't call miraging codes while iterating through the range manager's entities map.
...
I already had made that mistake when working on the fogging system so I
documented it in the code.
Fixes #2756
This was SVN commit r15692.
2014-08-29 09:01:08 +00:00
30b5fb6c41
Pass map settings also to Scenario games, including in particular trigger scripts for victory conditions.
...
Fixes #2715
This was SVN commit r15688.
2014-08-27 15:25:16 +00:00
ea78d97989
Explore the map inside a player's territory border at the beginning of a game.
...
Also handle properly the "Explore Map" option with the new fogging
system.
Fixes #2709
This was SVN commit r15681.
2014-08-26 10:01:04 +00:00
be2f0e69fc
Make the modmod standalone.
...
Mount public in case we are starting Atlas and no mods are specified in
the config.
If users remove all mods and save this to the config and try to start
Atlas it will
crash, as it cannot find some needed files.
This was SVN commit r15678.
2014-08-25 16:38:54 +00:00
64bfa089af
Add mod selection mod.
...
Includes some contributions by rada and sanderd17.
This was SVN commit r15677.
2014-08-25 16:02:54 +00:00
523d220ac5
Add engine support to load mods from config and restart into mods.
...
Restructure mod mounting code a bit to make it reusable, and use it for
replays. Fixes #2703 .
This was SVN commit r15676.
2014-08-25 16:02:40 +00:00
c5c394fd17
Fix some disabled tests.
...
This was SVN commit r15673.
2014-08-24 15:29:53 +00:00
2b7e9728b6
Fix failure in TestNetComms::test_basic_DISABLED. Patch by Echelon9. Fixes #2426 .
...
This was SVN commit r15672.
2014-08-24 12:02:52 +00:00
12771edb0e
Delete dynamic message subscriptions on simulation reset.
...
This was SVN commit r15646.
2014-08-16 01:23:50 +00:00
a4df483f60
Forgot to make a variable unused.
...
This was SVN commit r15631.
2014-08-13 14:52:38 +00:00
0b385384aa
Fix terrain overlay rendering after water.
...
This was SVN commit r15628.
2014-08-12 15:58:03 +00:00
8593825eee
Modifies 23c708f72a
to use the NONCOPYABLE macro as suggested by leper.
...
This was SVN commit r15626.
2014-08-09 21:16:25 +00:00
23c708f72a
Prevent copying of ScriptInterface objects.
...
Copying a ScriptInterface is not allowed. The destructor destroys the
JSContext and if there's a copy around that still uses it, that causes
crashes which can be quite hard to debug. This change prevents copying
by of ScriptInterface objects by making the copy constructor private,
which will reveal such errors at compile time.
This was SVN commit r15625.
2014-08-09 20:20:32 +00:00
83aa817f71
Exact stack rooting for simulation message type conversions.
...
Also replaces some deprecated API (jsval typedef and OBJECT_TO_JSVAL) in
that part of the code.
Refs #2415
This was SVN commit r15624.
2014-08-09 20:02:49 +00:00
8ce8e6ba9a
Exact stack rooting for IGUIObject.
...
Refs #2415
Refs #2462
This was SVN commit r15623.
2014-08-08 13:41:47 +00:00
9872f5741f
Exact stack rooting for ScriptInterface::FreezeObject.
...
Refs #2415
This was SVN commit r15622.
2014-08-08 11:59:49 +00:00
403b3b68af
Fix some errors in WaterManager.
...
This was SVN commit r15620.
2014-08-06 15:24:38 +00:00
e578d215ea
Fix free() of not allocated struct in the UPnP code. Patch by Echelon9. Fixes #2338 , #2418 .
...
This was SVN commit r15619.
2014-08-06 14:11:04 +00:00
5ae040ea54
Fix non-PCH build.
...
This was SVN commit r15618.
2014-08-06 13:23:02 +00:00
e865dc797d
Revert RedFox's changes to Spatial subdivisions in the simplest possible way (hopefully won't cause OOS, but at least we'll get reports). Fixes #2573 , Refs #2430 . There probably are opportunities to remove more things.
...
This was SVN commit r15617.
2014-08-06 09:21:00 +00:00
c662a4e9e9
Fixes #2713
...
This was SVN commit r15615.
2014-08-05 19:03:10 +00:00
f7e591c9f2
Hide changes to buildings in the fog-of-war.
...
To achieve this, mirage entities are created per player, to replace the
real entities when these ones fall into the fog-of-war. These mirage
entities are created on-the-fly, and destroyed when they get back in
sight.
This depends heavily on the VisibilityChanged message added in
2174eaaeee
.
As a temporary adjustment, territories do not explore the map anymore
when their borders change. See #2709 .
Fixes #599
This was SVN commit r15612.
2014-08-04 22:49:19 +00:00
e41f010f91
Fixes crash when loading maps in Atlas.
...
The ScriptInterface pointer can be NULL there, so using it without
checking is not safe.
This fixes the problem by continuing with the exact stack rooting
changes, which makes the temporary solution unnecessary.
Fixes #2707
Refs #2415
This was SVN commit r15611.
2014-08-04 20:14:17 +00:00
30fa275f9d
Fixed some keys not being recognized after a719696658
. Refs #195 .
...
This was SVN commit r15610.
2014-08-04 16:48:54 +00:00
a719696658
Support more mouse buttons. Fixes #195 . Patch by 01d55 with some minor cleanup.
...
This was SVN commit r15609.
2014-08-04 01:06:36 +00:00
efb889b79a
Exact stack rooting for WriteStructuredClone and functions that use it.
...
Refs #2415
This was SVN commit r15607.
2014-08-03 19:32:39 +00:00
f4d62152e7
Exact stack rooting for GetClass and GetPrivate.
...
Refs #2415
This was SVN commit r15606.
2014-08-03 17:53:21 +00:00
169174824f
Exact stack rooting for ScriptInterface::ToString.
...
I had to change a few other functions to take JS::MutableHandleValue
because JS::Stringify takes a JS::MutableHandleValue as input parameter.
That seems a bit strange because it should not change that value.
I assume it has historical reasons.
Refs #2415
Refs #2462
This was SVN commit r15605.
2014-08-03 17:29:49 +00:00
a2bd44b23a
Exact stack rooting for JSON related ScriptInterface functions.
...
Refs #2415
Refs #2462
This was SVN commit r15603.
2014-08-02 22:21:50 +00:00
c818b8e475
Exact rooting for CallConstructor.
...
Refs #2415
Refs #2462
This was SVN commit r15601.
2014-08-02 16:30:15 +00:00
736d934107
Removes an unused codepath for AI deserialization and related ScriptInterface code.
...
It might actually be needed again in the future, but I think even then
it would be easier to rewrite it than having to update the code in the
meantime.
Refs #2462
This was SVN commit r15600.
2014-08-02 13:22:02 +00:00
4028cd425e
Actually fix bugs on ATI cards. Switch reflection and refractions to use POT textures in an attempt to improve compatibility.
...
This was SVN commit r15598.
2014-08-02 12:54:45 +00:00
608c27fe10
Exact stack rooting for structured cloning functions.
...
Refs #2415
Refs #2462
This was SVN commit r15597.
2014-08-01 20:55:16 +00:00
e50147fd96
Metaprogramming 9ce51f4357
.
...
Change something on water shaders to see if it works better on ATI
cards.
This was SVN commit r15594.
2014-08-01 10:15:29 +00:00
5c07a25ddc
More exact stack rooting (CallFunction object).
...
Changes CallFunction and CallFunctionVoid to use a HandleValue as object
parameter. Also changes some JS serialization/deserialization functions
to only support the JSAPI rooted types (drop support for CScriptVal and
CScriptValRooted there). Some other functions got changed too because
they were closely related.
Refs #2415
Refs #2462
This was SVN commit r15592.
2014-07-31 19:18:40 +00:00
d677a30c39
Adds support for passing JS::HandleValue and JS::RootedValue& to CallFunction.
...
Also adds tests for these cases.
Refs #2415
This was SVN commit r15591.
2014-07-31 16:34:15 +00:00
2ae74221c7
Fixes saving/loading problems introduced in 28bdd8540f
.
...
* CGameLoader created a new JS::Value when assigning to m_Metadata.
This means it didn't actually update metadata in SavedGames::Load. The
new approach solves this problem and should work well if
CScriptValRooted gets replaced in the future.
* The cloning in ScriptFunctions.cpp was required. Removing it caused
compartment mismatches.
* Now CGameLoader loads the metadata unconditinally because we didn't
actually use the option to not load load it.
Ref #2415
This was SVN commit r15589.
2014-07-31 14:44:51 +00:00
f85272e3de
Small code style fix, related to a typo in the documentation. Also updates the Example component's copyright to match the current year.
...
This was SVN commit r15586.
2014-07-30 17:34:40 +00:00
9ce51f4357
Commit coastal waves when activating fancy effects, and incidentally completely change how this effect work. Refs #48 .
...
This was SVN commit r15576.
2014-07-28 10:14:00 +00:00
2be86ef79e
Fix crash when starting Atlas (introduced in 28bdd8540f
).
...
This was SVN commit r15573.
2014-07-27 18:38:31 +00:00
07653c9a70
Fixes crash when generating random maps.
...
We must not be in a request when calling the ScriptInterface destructor.
This was SVN commit r15572.
2014-07-27 18:17:16 +00:00
cef9e7d4f0
Fixes crash in replay mode introduced in 28bdd8540f
.
...
This was SVN commit r15571.
2014-07-27 17:28:36 +00:00
64efbfeae3
Fixes small memory leak introduced in 28bdd8540f
.
...
Thanks to leper for pointing it out.
This was SVN commit r15569.
2014-07-26 23:09:24 +00:00
28bdd8540f
Quite a lot of stack rooting related changes.
...
Changes GetProperty, SetProperty and HasProperty and a few other
functions to take handles. The conversions to CScriptVal or
CScriptValRooted at some places should be removed in the future. I've
done that to avoid an even larger patch.
Refs #2415
Refs #2462
This was SVN commit r15568.
2014-07-26 22:33:16 +00:00