historic_bruno
f3d088dd5c
Fixes JS debugger, fixes VS 2013 build error, re-fixes #2127 , #2175
...
This was SVN commit r13973.
2013-10-07 22:55:30 +00:00
RedFox
5d9b2b95b0
Ticket #2127 - Performance and style improvements in scriptinterface.
...
No real behavior changes, only code maintenance.
Fixed signed/unsigned mismatch in EntityMap.h
This was SVN commit r13865.
2013-09-16 19:10:06 +00:00
stwf
b1bd61938e
add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development
...
This was SVN commit r13821.
2013-09-10 14:17:04 +00:00
leper
0ca841b92b
Suppress unused local typedef warnings when including SpiderMonkey headers.
...
This was SVN commit r13713.
2013-08-19 18:26:44 +00:00
alpha123
8c74df2acd
Give an elevation advantage to ranged units. Patch by sanderd17. Fix #1960 .
...
This was SVN commit r13626.
2013-08-03 19:20:20 +00:00
historic_bruno
94c57085e9
Makes some classes NONCOPYABLE, based on patch by Markus, refs #1852
...
This was SVN commit r13419.
2013-05-22 21:40:56 +00:00
historic_bruno
d7dcd3b26c
Use prefix increment operator for iterators (for consistency), refs #1852 , #1064
...
This was SVN commit r13418.
2013-05-22 18:41:13 +00:00
leper
3f00d4d997
Change some size() > 0 to Based on patches by kuranes and Markus. Refs #1852 , #1923 .
...
This was SVN commit r13413.
2013-05-21 22:11:47 +00:00
Ykkrosh
74df28f952
Fix --without-pch build
...
This was SVN commit r13333.
2013-04-02 15:44:42 +00:00
leper
0d7e6b7880
Use pimpl idiom for ThreadDebugger.
...
This was SVN commit r13253.
2013-03-10 23:08:01 +00:00
leper
8c756b507a
Fix non-pch build. Maybe use pimpl idiom instead.
...
This was SVN commit r13245.
2013-03-08 23:46:32 +00:00
Yves
73951b75fc
Adds the server-side part of the javascript debugger. Refs #410
...
This was SVN commit r13238.
2013-03-07 13:49:49 +00:00
historic_bruno
1fdaca5cec
Attempts to fix StringifyJSON by clearing pending exceptions from JS API
...
This was SVN commit r13125.
2013-01-27 01:38:43 +00:00
Ykkrosh
75a23856cf
Fix some static analysis warnings
...
This was SVN commit r13101.
2013-01-21 20:33:25 +00:00
historic_bruno
99d04e93bb
Implements global tech modification function. Fixes #1358 , refs #1520 .
...
Applies tech modifications to template data returned by GuiInterface.
Extends engine to load arbitrary global scripts, separates this from RNG
replacement. Refs #1193 .
Loads global scripts for most script contexts for consistency.
Adds simulation tests for global scripts.
This was SVN commit r12056.
2012-07-03 02:16:45 +00:00
Ykkrosh
2ee9981d99
Replace boost::uniform_real to avoid OOS caused by changes in behaviour between Boost versions
...
This was SVN commit r11857.
2012-05-13 23:40:06 +00:00
historic_bruno
32d2927449
Adds UTF-8 support for JavaScript files.
...
This was SVN commit r11750.
2012-05-04 21:48:46 +00:00
historic_bruno
da4c1c8f2b
Fixes handling of UTF-8 encoded JSON files (stripping BOM if necessary). Fixes #1375 .
...
This was SVN commit r11739.
2012-05-04 03:46:05 +00:00
Ykkrosh
edc62a240a
Try to avoid some type warnings
...
This was SVN commit r11558.
2012-04-18 21:02:11 +00:00
leper
c56f96040e
Implement healing. Fixes #999 .
...
This was SVN commit r11536.
2012-04-17 20:22:13 +00:00
Ykkrosh
f1e73807a8
Fix formatting
...
This was SVN commit r11377.
2012-03-20 18:13:27 +00:00
quantumstate
0b0f2e9e30
Fixed broken tests by silently failing if Math.js is not found. This is not ideal but seems better than everything else.
...
This was SVN commit r11253.
2012-03-05 21:20:39 +00:00
quantumstate
e2e5c81272
Added safe (identical across platforms) replacement sin and cos functions for scripts. This is part of #1193 .
...
This was SVN commit r11226.
2012-03-03 00:06:16 +00:00
historic_bruno
7fa6afac37
Corrects some Doxygen comments and adds a few others of interest.
...
This was SVN commit r11209.
2012-03-01 03:55:05 +00:00
Ykkrosh
182bf2b4af
Vague start at hypothetical Android support
...
This was SVN commit r10923.
2012-01-17 22:05:43 +00:00
historic_bruno
1e4b950ed1
This was SVN commit r10870.
2012-01-05 03:38:54 +00:00
Ykkrosh
dbf27dbc5e
Fix #1065 (incorrect printf format string), based on patch by Echelon9
...
This was SVN commit r10823.
2011-12-29 01:40:24 +00:00
vts
db864f10c3
Rendering marker lines between buildings and rally points
...
Added command button to focus on rally point
(implements #524 )
This was SVN commit r10704.
2011-12-10 07:07:04 +00:00
Ykkrosh
8492426a14
Rough support for profiling replay mode and scripts
...
This was SVN commit r10634.
2011-11-29 20:32:43 +00:00
Ykkrosh
5bd7b74ec7
Fix ABI incompatibility with --with-system-mozjs185 in debug mode (see #990 ).
...
This was SVN commit r10535.
2011-11-14 18:18:04 +00:00
Ykkrosh
85e16f95b1
Use debug_printf for script print() function, so it's more visible on Windows
...
This was SVN commit r10435.
2011-10-27 14:19:37 +00:00
historic_bruno
0e39511b3a
Attempts to fix random map OOS errors by avoiding parsing data to floats (uses CFixedVector3D instead). See #977 .
...
Changes to rmgen API for consistency and support of 3D
position/rotation.
This was SVN commit r10326.
2011-09-26 21:36:33 +00:00
Ykkrosh
78fd3a2ba2
Fix compatibility with Boost 1.47
...
This was SVN commit r9905.
2011-07-24 11:41:06 +00:00
Ykkrosh
ea7f65818a
Avoid release-mode-only warning
...
This was SVN commit r9857.
2011-07-17 01:26:04 +00:00
Ykkrosh
2f0bd8d8b0
Upgrade to SpiderMonkey 1.8.5 ( fixes #734 )
...
This was SVN commit r9852.
2011-07-16 23:24:14 +00:00
Ykkrosh
8eb7af4ac9
Be a bit more robust to build environment changes.
...
Reduce some module dependencies.
Clean up some unused instantiations.
This was SVN commit r9827.
2011-07-15 13:22:48 +00:00
historic_bruno
a8fdcfde59
Fixes broken autostart for random maps with AI
...
This was SVN commit r9699.
2011-06-27 23:27:25 +00:00
historic_bruno
5bc125a91f
Changes terrain data returned by CMapGenerator to typed arrays, instead of an array of objects (this greatly reduces the size of the serialized data)
...
This was SVN commit r9664.
2011-06-26 02:56:54 +00:00
janwas
34186dd017
refactor file interface. requires workspace update
...
- separate file_system_util into vfs functions (-> vfs/vfs_util) and
file_system (avoids ugly fs_util namespace prefix)
- get rid of non-portable O_BINARY_NP etc. flags
- use standard O_WRONLY etc. flags instead of LIO_WRITE; but avoid the
need for specifying O_CREAT|O_TRUNC
- only open files for aio when O_DIRECT is specified (which 0ad does
not) - avoids wasting time and security issues
- return file descriptor directly instead of via output param
- waio: safer FCB mechanism that avoids mixing descriptors between lowio
and aio
This was SVN commit r9550.
2011-05-25 10:39:13 +00:00
Ykkrosh
b741feafb1
Add global deepcopy() function in scripts, to do a structured clone of objects.
...
Remove an unused include.
This was SVN commit r9506.
2011-05-12 23:50:42 +00:00
historic_bruno
fffcdbbf21
Balances random map resources.
...
Attempts to avoid "invalid argument" errors in typed arrays by forcing
them to integer (see #658 ).
Removes script preloading from map generator (VFS is thread-safe now)
Removes thread checking from ScriptInterface file loading functions.
Adjusts starting entities in civ data.
This was SVN commit r9435.
2011-05-04 21:24:25 +00:00
janwas
cccd6849a7
cleanup (requires update-workspaces)
...
lib_errors.cpp: replace with status.cpp, adapt to needs at work
wutil: fix runtime warning reported via feedback box
config: merge CONFIG_PARANOIA and !CONFIG_FINAL into
CONFIG_ENABLE_CHECKS
add openmp, pointer_typedefs.h
This was SVN commit r9410.
2011-05-03 12:38:42 +00:00
janwas
4663ac0fe7
split debug_assert into ENSURE and ASSERT as discussed in a previous meeting.
...
the old debug_assert always ran and tested the expression, which slows
down release builds. wrapping them in #ifndef NDEBUG is clumsy. the new
ASSERT behaves like assert and ENSURE like the old debug_assert. Let's
change any time-critical but not-super-important ENSURE to ASSERT to
speed up release builds. (already done in bits.h and unique_range.h)
This was SVN commit r9362.
2011-04-30 13:01:45 +00:00
historic_bruno
b4503bb61e
Simplifies random map output, see #782 .
...
Changes random maps to XZ coordinates, matching the engine.
More documentation for rmgen library.
This was SVN commit r9271.
2011-04-16 04:04:06 +00:00
historic_bruno
481f570a0e
CMapGeneratorWorker thread safety issue. Fixes #783 .
...
VFS access moved to main thread, where random map scripts are preloaded
and stored prior to use by the worker thread.
Adds LoadGlobalScript to ScriptInterface, for evaluating script content
in the global scope.
This was SVN commit r9261.
2011-04-15 05:23:51 +00:00
Ykkrosh
f072b47dc1
Warn earlier about some non-thread-safe calls.
...
This was SVN commit r9252.
2011-04-14 14:28:24 +00:00
Ykkrosh
bd0063607a
Fix build in Clang
...
This was SVN commit r9213.
2011-04-09 00:05:37 +00:00
Ykkrosh
e5e9e38532
Fix GCC 4.6 "set but not used" warnings
...
This was SVN commit r9194.
2011-04-07 16:34:51 +00:00
Ykkrosh
9193ba56f9
Build fixes and whatnot
...
This was SVN commit r9115.
2011-03-23 21:15:22 +00:00
janwas
588bfa11bf
remove unnecessary utf8 includes
...
This was SVN commit r9110.
2011-03-23 16:32:44 +00:00