81c9a9b1f1
Fix build with old GCC
...
This was SVN commit r9964.
2011-08-04 21:36:57 +00:00
083e7a41fd
fix typo
...
This was SVN commit r9962.
2011-08-04 17:27:14 +00:00
0748c5a75e
cleanup and simplification of the really old h_mgr code.
...
replace array-of-pages data structure with demand-committed VM => allows
simple allocation of new resources without having to search for the
first free index. I suspect the cause of multiple reported bugs (refs
#860 , #899 , #915 ) was a race. Most issues are fixed, but the pool's
freelist also needs to be made thread-safe and lock-free. this has
performance and 64-bit portability implications, so I'll leave it for
later (Pool is due for some serious refactoring anyway).
please post a comment if this or similar issues persist.
This was SVN commit r9961.
2011-08-04 17:11:16 +00:00
22191bfcc6
Windows fix (smaller type conversion)
...
This was SVN commit r9960.
2011-08-04 15:31:01 +00:00
2d662a1228
Add WELL512 RNG
...
This was SVN commit r9955.
2011-08-02 22:58:10 +00:00
94e9a8b459
Fix hang with Boost 1.47
...
This was SVN commit r9954.
2011-08-02 21:07:58 +00:00
6aeb5c64de
# Remove SoD inside territories.
...
Fix some serialisation issues.
This was SVN commit r9951.
2011-08-01 21:25:12 +00:00
9430de3d85
Support TerrainChanged messages in scripts, and report use of unsupported messages
...
This was SVN commit r9950.
2011-08-01 21:01:06 +00:00
6304797cbd
pool - safely handle zero-sized allocations ( fixes #909 )
...
snd_mgr - remove no longer needed hacks for native OpenAL
implementations
test_wdbg_sym.h - belated commit of warning fix
This was SVN commit r9944.
2011-07-31 09:42:57 +00:00
e7ac0926a7
Replace console prefix-search behaviour with more standard history navigation, based on patch by Ross Bearman.
...
Fixes #906 .
This was SVN commit r9939.
2011-07-30 23:06:09 +00:00
3cc1c7e24e
Templates sorting utility. Closes #801 .
...
This was SVN commit r9938.
2011-07-30 20:20:34 +00:00
04ec40259b
Use player colours for territory borders in minimap
...
This was SVN commit r9932.
2011-07-30 12:07:27 +00:00
8fee3d8ef8
# New territory border rendering.
...
Add textured line overlay rendering.
Change terrain height calculations to be triangulation-dependent for
improved accuracy.
Add triangulation-dependent terrain normal function.
Support separate S/T wrap modes for textures.
Rename CVector2D_Maths since it no longer conflicts with simulation
CVector2D.
Coalesce freed chunks in vertex buffers, to avoid excessive
fragmentation.
Add some things to help debug vertex buffer allocation a little.
This was SVN commit r9929.
2011-07-30 00:56:45 +00:00
cdfeeab25f
Fixes Atlas non-PCH build.
...
This was SVN commit r9911.
2011-07-24 21:50:58 +00:00
b2837e2878
Fix compatibility more with Boost 1.47
...
This was SVN commit r9907.
2011-07-24 11:59:57 +00:00
955f94976e
# New dynamic territories design
...
This was SVN commit r9906.
2011-07-24 11:42:35 +00:00
78fd3a2ba2
Fix compatibility with Boost 1.47
...
This was SVN commit r9905.
2011-07-24 11:41:06 +00:00
813fed5b9e
Adds GetCivData to map generator API (to replace the hardcoded starting entities in rmgen).
...
Adds some starting entities to unfinished civs.
This was SVN commit r9901.
2011-07-24 03:28:18 +00:00
153357f640
Replaces architecture-dependent cpuid function with inline GCC assembly. Should fix #670 by eliminating nasm dependency.
...
This was SVN commit r9891.
2011-07-21 01:44:29 +00:00
f9d7c1246d
# Initial support for territories
...
This was SVN commit r9889.
2011-07-20 19:48:06 +00:00
15df4aa4be
OS X fix: if os_cpu_ClockFrequency reports an unknown/invalid value, measure the frequency instead; also avoid reporting invalid freqs in system_info
...
This was SVN commit r9886.
2011-07-20 08:10:36 +00:00
ce42cd611a
Update release packaging script for recent library changes
...
This was SVN commit r9884.
2011-07-19 17:30:49 +00:00
8da2640f5e
Fixes no-PCH build
...
This was SVN commit r9883.
2011-07-19 09:00:15 +00:00
708e9cea05
Fix looping of non-streaming sounds
...
This was SVN commit r9877.
2011-07-18 17:56:17 +00:00
b738f27283
hopefully fix non-Windows build errors
...
This was SVN commit r9875.
2011-07-18 15:25:48 +00:00
ead45aa957
Report XML parse errors better in validator tool
...
This was SVN commit r9874.
2011-07-18 14:57:41 +00:00
c33246d603
Fix build errors
...
This was SVN commit r9872.
2011-07-18 11:10:13 +00:00
0d23e3f333
post-alpha sync with work.
...
debug stack trace fixes, remove more asm, change CONTINUE/OK scheme to
OK/ALL_COMPLETE, fix tests
This was SVN commit r9871.
2011-07-18 09:21:56 +00:00
2d9e473483
fix for non-contiguous APIC IDs within a single package (happens on recent Intel CPUs)
...
This was SVN commit r9870.
2011-07-18 08:08:06 +00:00
aeddb5fb48
avoid warning when running a second instance and Mahaf is enabled
...
This was SVN commit r9863.
2011-07-17 19:19:33 +00:00
a31ce6a3ce
Fix "hides overloaded virtual function" warnings in Clang
...
This was SVN commit r9862.
2011-07-17 17:30:07 +00:00
be3eb579d4
fix another cast runtime error
...
This was SVN commit r9861.
2011-07-17 14:48:23 +00:00
ea7f65818a
Avoid release-mode-only warning
...
This was SVN commit r9857.
2011-07-17 01:26:04 +00:00
2f0bd8d8b0
Upgrade to SpiderMonkey 1.8.5 ( fixes #734 )
...
This was SVN commit r9852.
2011-07-16 23:24:14 +00:00
364f76c5ff
Fix rare use of uninitialised values
...
This was SVN commit r9847.
2011-07-16 19:52:48 +00:00
dd054c8d97
acpi: fix cast error (caught by runtime check)
...
x86_x64: simplify MSC version check
This was SVN commit r9846.
2011-07-16 17:27:07 +00:00
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
ca42649c5b
Fix MSVC warning
...
This was SVN commit r9820.
2011-07-13 19:28:31 +00:00
f28ae0d427
Disable SDL's DGA mouse support by default, to fix Linux fullscreen mouse sensitivity problems
...
This was SVN commit r9819.
2011-07-13 17:40:12 +00:00
7f74693052
Disable culling of transparent objects in shadows/reflections, to fix trees
...
This was SVN commit r9818.
2011-07-13 13:51:40 +00:00
b08e142193
Graphics optimisations and features from eihrul.
...
Add shadow filtering (PCF) option.
Fix ugly shadow saturation in old lighting mode.
Fix fancy water shader.
Fix camera matrix computation.
Support scissoring of camera frustum.
Optimise vertex skinning.
Inline various matrix functions.
Support filtering of the list of submitted models before a rendering
pass, for more precise culling.
Optimise water renderer (fixes #721 , based on patch by ortalo).
Use scissoring when generating reflection/refraction textures.
Skip reflection/refraction texture generation when no water is visible.
Render alpha-blended objects differently (fixes #434 ).
Reduce shadow swimming effects.
This was SVN commit r9814.
2011-07-12 23:48:05 +00:00
bb33a259b6
Fixes Atlas build errors on OS X (specifically MacPorts' version of wxWidgets doesn't support constructing wxString with std::wstring)
...
This was SVN commit r9797.
2011-07-10 21:00:21 +00:00
20ebb2b829
Fix incorrect string type in log message on non-Windows
...
This was SVN commit r9790.
2011-07-09 18:41:58 +00:00
a4637c25d0
Fix no-PCH builds
...
This was SVN commit r9786.
2011-07-08 15:07:08 +00:00
6371afbc76
Remove the rarely-used source code option from the Windows installer. See #855 .
...
This was SVN commit r9777.
2011-07-07 20:11:47 +00:00
b6d04004b6
Avoid errors when using planes in formations, by not allowing them to join formations
...
This was SVN commit r9776.
2011-07-07 17:05:22 +00:00
899f5105b9
Fix glwprintf errors on OS X with non-ASCII strings, by setting LC_CTYPE to UTF-8
...
This was SVN commit r9768.
2011-07-06 21:19:59 +00:00
1bc2db56ea
Stops unit following when other object selected. Fixes #775
...
This was SVN commit r9764.
2011-07-05 21:29:11 +00:00
315dfbff5d
Fix use of outdated cached transform when computing bounding boxes.
...
Should fix #867 .
This was SVN commit r9761.
2011-07-05 00:12:00 +00:00
528b833db0
Fix assertion failure in replay mode
...
This was SVN commit r9757.
2011-07-04 15:17:46 +00:00
f01097b23c
Avoid crash when pressing 'h' while multiplayer host game setup screen is loading
...
This was SVN commit r9753.
2011-07-03 18:36:43 +00:00
6ba00117e0
Fixes bug in Atlas player editor: saving team as "None" had no effect
...
This was SVN commit r9721.
2011-06-29 00:57:02 +00:00
996a32125c
Add per-player LOS-reveal flag.
...
Reveal LOS for Gaia and AI players (fixes #879 ).
Use player_id_t slightly more consistently in interfaces.
This was SVN commit r9720.
2011-06-28 23:24:42 +00:00
293adad0ba
Fix #829 - Stuck units bug
...
This was SVN commit r9713.
2011-06-28 07:27:03 +00:00
a8fdcfde59
Fixes broken autostart for random maps with AI
...
This was SVN commit r9699.
2011-06-27 23:27:25 +00:00
31832cd9ae
Initialise minimap and LOS textures properly
...
This was SVN commit r9673.
2011-06-26 21:47:07 +00:00
3f51747440
Fix uninitialised value
...
This was SVN commit r9672.
2011-06-26 21:45:58 +00:00
df2e499efc
Post code review version - previous commit was pre code review version.
...
This was SVN commit r9666.
2011-06-26 07:47:03 +00:00
2aedf48304
#788 Eliminate delay in path finding (and therefore moving)
...
This was SVN commit r9665.
2011-06-26 07:03:08 +00:00
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
33e8ac6fa5
Applies Kenny's patch for CInput pasting behavior ( fixes #640 )
...
Simplifies some clipboard hotkeys
This was SVN commit r9658.
2011-06-25 00:04:41 +00:00
92fcb737cd
Attempt minor improvements to stances code (see #865 ).
...
Don't chase units that are no longer visible, beyond where they were
last seen (fixes #595 ).
This was SVN commit r9657.
2011-06-24 12:35:15 +00:00
195c7a00e9
Adds player settings shortcut to Atlas map panel. Fixes #874
...
Tweaks some control positions and layouts for consistency
This was SVN commit r9649.
2011-06-23 22:38:26 +00:00
492e49da38
add support for selection and deletion of entire words in text controls (ctrl+backspace/delete/left/right) based on patch by Chakakhan/kenny (thanks!)
...
also refactored wclipboard
closes #511
This was SVN commit r9646.
2011-06-23 10:12:43 +00:00
abdc846a65
Adds getInt to AtlasObject
...
Uses this instead of wxAtoi for consistency, and adds brief comment
about why wxAtof should be avoided
This was SVN commit r9643.
2011-06-21 02:56:49 +00:00
ef4df42895
add support for .dylib on OS X based on patch by Yves (thanks!)
...
c.f.
http://www.wildfiregames.com/forum/index.php?showtopic=14173&pid=220828&st=0&#entry220828
This was SVN commit r9642.
2011-06-20 20:06:51 +00:00
10481ca174
Avoid potentially dangerous locale-dependent atof functions
...
This was SVN commit r9639.
2011-06-19 19:51:53 +00:00
9965c1ef1b
Remove label that is no longer labelling anything
...
This was SVN commit r9636.
2011-06-19 14:55:43 +00:00
db5e483266
Fix typo in comment
...
This was SVN commit r9635.
2011-06-19 14:18:07 +00:00
74f849ad0b
Adds message when profiler snapshot is first saved (Shift+F11)
...
This was SVN commit r9633.
2011-06-17 23:40:13 +00:00
71a6775b92
Stances draft, refs #865
...
This was SVN commit r9631.
2011-06-17 22:13:39 +00:00
3be43ede41
Adds rotation to starting camera (currently unused)
...
This was SVN commit r9623.
2011-06-16 21:21:33 +00:00
9e486cd6e3
Fixes bug in Atlas camera control (clear button didn't erase the setting)
...
This was SVN commit r9620.
2011-06-14 01:03:35 +00:00
3e4d74480d
Adds AI control to Atlas player panel
...
Adds camera control to Atlas player panel
Changes map reader to handle per-player starting camera position. See
#55
Adds entity name filter to Atlas object panel
Fixes bug in Atlas map settings (caused crash when object panel was not
loaded)
This was SVN commit r9617.
2011-06-13 23:32:41 +00:00
0c803f99e8
This was SVN commit r9609.
2011-06-09 23:47:20 +00:00
23f1072a2e
Adds player editor to Atlas scenario editor. See #91
...
Fixes object panel so the list of players updates correctly.
Atlas map settings are now observable and shared between various panels.
Fixes panels for maps missing settings (caused JSON error)
Changes map reader so that entities with invalid players cause a warning
but are not added to the game. That prevents further errors. Fixes #869
Uses map size choices from simulation/data/map_sizes.json instead of
multiple locations. Fixes #787
Prepares Atlas map settings for undo/redo support
This was SVN commit r9608.
2011-06-09 23:45:12 +00:00
266977bc78
Attempt to fix manifest problems in autobuild.
...
This was SVN commit r9607.
2011-06-09 23:16:27 +00:00
2c58b07223
# Add experimental fighter planes.
...
This was SVN commit r9605.
2011-06-09 19:44:40 +00:00
1357000401
Fix #805 more so it doesn't ignore the second click on non-double-clickable buttons.
...
This was SVN commit r9604.
2011-06-09 17:30:34 +00:00
8720b4a220
Fix Atlas saving game type under wrong property name.
...
This was SVN commit r9599.
2011-06-09 16:39:31 +00:00
24cca252e3
Ranged units always face their targets when attacking. fixes #831
...
This was SVN commit r9595.
2011-06-06 22:08:26 +00:00
43d817bc22
--
...
This was SVN commit r9593.
2011-06-06 19:39:19 +00:00
9906a86a2e
Support double-click on unit group buttons. patch by Merolum. fixes #805 .
...
This was SVN commit r9592.
2011-06-06 19:31:34 +00:00
6feb143e61
OS X compile fix
...
This was SVN commit r9582.
2011-05-30 23:06:16 +00:00
ef74ad7f7b
OS X compile fix (hopefully): add definition for O_DIRECT
...
This was SVN commit r9581.
2011-05-30 21:49:33 +00:00
034881d30c
sync with work. simplify wnuma, refactor+fix topology (bugs: APIC IDs array didn't correspond to OS processor number; couldn't handle noncontiguous APIC ID field values)
...
This was SVN commit r9580.
2011-05-30 13:00:20 +00:00
f25407e7fb
Fix typo
...
This was SVN commit r9579.
2011-05-30 11:51:14 +00:00
ce647cf8e3
Add a manifest hack to fix building in VC2008+, when loading DLLs built in VC2005
...
This was SVN commit r9576.
2011-05-29 21:13:21 +00:00
59124006c8
Work around problem with quote keys in Windows on an Apple machine
...
This was SVN commit r9575.
2011-05-29 21:12:09 +00:00
c2677b4bb0
Upgrade game and build system to ENet 1.3
...
This was SVN commit r9574.
2011-05-29 20:57:28 +00:00
e3d87b0375
remove no longer necessary lowlevel wsock implementation (superseded by enet) since the delay load hook isn't compatible with a DLL packaging of enet.
...
-> cstr serialization uses lib/byte_order.h instead of htons; removed
hostname/IP from system_info (Philip agrees its utility is negligible)
This was SVN commit r9572.
2011-05-29 19:59:51 +00:00
acb48663d7
Windows fixes
...
This was SVN commit r9570.
2011-05-29 18:14:52 +00:00
6bdafee6a0
Update Atlas sidebar buttons slightly
...
This was SVN commit r9569.
2011-05-29 16:36:15 +00:00
fa7855f3d9
Delete now-unused wxJavaScript library
...
This was SVN commit r9568.
2011-05-29 15:46:07 +00:00
a81f180dd6
Remove Atlas UI scripting support
...
This was SVN commit r9567.
2011-05-29 15:43:08 +00:00
dc2035efc9
Move Atlas map settings from JS to C++.
...
Replace New dialog box with separate tools for resizing maps and
replacing terrain textures, to provide more power and to simplify the
problem of initialising map settings.
Fix engine to cope with dynamic map resizing.
Add JSON support to AtObj, to let C++ interact with JSON more easily.
This was SVN commit r9566.
2011-05-29 15:02:02 +00:00
1618aa9c36
Add missing file for actor viewer
...
This was SVN commit r9565.
2011-05-29 14:57:54 +00:00
07e307c49a
Move Atlas's terrain and object sections from JS back into C++, per http://www.wildfiregames.com/forum/index.php?showtopic=14741
...
This was SVN commit r9559.
2011-05-27 21:56:43 +00:00
4496fcd2df
Restore some old Atlas files
...
This was SVN commit r9558.
2011-05-27 21:48:23 +00:00
755802d0ce
Fix build errors
...
This was SVN commit r9556.
2011-05-27 13:32:34 +00:00
1bf2598429
Fixes square maps to behave like circular maps and fit within the circle. Fixes #822
...
This was SVN commit r9554.
2011-05-27 03:04:59 +00:00
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
7600c3862b
refactor gfx detection code (interface), allow exporting from DLL (required at work)
...
This was SVN commit r9546.
2011-05-24 14:17:47 +00:00
f1a1f023df
reinstate aligned_allocator.h (required at work)
...
further fixes to preserve the last error while building error messages
somewhat more accurate NUMA factor computation
This was SVN commit r9545.
2011-05-23 14:10:45 +00:00
84030de9b7
Fix compile error with Boost 1.39 (ambiguous overloads)
...
This was SVN commit r9536.
2011-05-20 14:45:04 +00:00
1075e206f7
Fix some format string errors
...
This was SVN commit r9534.
2011-05-18 19:10:36 +00:00
6539456746
Fix format string
...
This was SVN commit r9524.
2011-05-15 19:52:46 +00:00
f4b55a9acf
Fix non-PCH build
...
This was SVN commit r9523.
2011-05-15 19:51:33 +00:00
0ea42d3185
avoid stomping on the last error while dumping stack
...
refs #849
This was SVN commit r9519.
2011-05-15 00:00:01 +00:00
45d358dd9a
add code to output both affected paths in case separators are being mixed
...
This was SVN commit r9516.
2011-05-14 20:25:32 +00:00
05688548d0
Fix a bogus Doxygen comment
...
This was SVN commit r9513.
2011-05-14 17:27:14 +00:00
a976045f0f
Report filename in Collada warning messages.
...
Skip harmless warnings about missing materials in Collada files.
This was SVN commit r9512.
2011-05-14 16:43:08 +00:00
963960fafa
no longer warn when SetFileValidData fails, as it does on all FAT volumes (boo)
...
fixes #849
This was SVN commit r9511.
2011-05-14 10:37:42 +00:00
edd8ef2bf2
Fix units in formation blocking construction and not moving out of the way (see #779 ).
...
Make non-movement-blocking buildings (e.g. farms) not require units to
move out of the way.
This was SVN commit r9510.
2011-05-13 20:32:41 +00:00
c41b7904d2
Fix burst of particles when starting to construct a building.
...
Fix crash when particle XML loading failed.
This was SVN commit r9509.
2011-05-13 19:36:56 +00:00
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
1420a229ff
Fix various position-related errors with garrisoned units.
...
Fix some formatting consistency.
This was SVN commit r9494.
2011-05-09 02:02:00 +00:00
452670738a
fix StatusDescription (remove unnecessary and wrong cast)
...
This was SVN commit r9489.
2011-05-08 20:09:31 +00:00
9b7cdef124
ensure WHRT debug messages are always displayed (in case of compatibility trouble)
...
refs #709
This was SVN commit r9485.
2011-05-08 09:14:21 +00:00
7ed9a84252
avoid double-free when sounds are reclaimed and then freed.
...
fixes #833
This was SVN commit r9477.
2011-05-07 17:34:47 +00:00
b82913ea14
make explicit that both iterator debugging and _SECURE_SCL (which is less than iterator debugging) are disabled in release builds
...
This was SVN commit r9476.
2011-05-07 16:46:28 +00:00
46e5db4dc4
fix build with ICC
...
This was SVN commit r9475.
2011-05-07 15:47:20 +00:00
c49f4c677b
Fix bogus error messages when errno=0
...
This was SVN commit r9472.
2011-05-07 00:14:43 +00:00
5bda00c230
Fix test
...
This was SVN commit r9471.
2011-05-07 00:14:17 +00:00
cd7abda9f1
Handle triple-click selections a bit more efficiently
...
This was SVN commit r9467.
2011-05-06 22:22:56 +00:00
b2bf04c5ae
Reduce projectile decay time
...
This was SVN commit r9466.
2011-05-06 21:53:33 +00:00
e90470020b
Try to make the pathfinder less likely to get stuck
...
This was SVN commit r9465.
2011-05-06 21:52:15 +00:00
f608b44d1d
fix self-test and map load on Windows (avoid mixing dir separators).
...
add more specific error codes (used at work)
This was SVN commit r9462.
2011-05-06 18:45:30 +00:00
0a7aeb23f7
smbios fix
...
This was SVN commit r9458.
2011-05-06 14:54:46 +00:00
1da3cdb498
Fix build errors
...
This was SVN commit r9453.
2011-05-05 20:24:22 +00:00
a8c087d46b
Missing files
...
This was SVN commit r9451.
2011-05-05 20:07:51 +00:00
45426ac21c
Probably fix build error
...
This was SVN commit r9450.
2011-05-05 18:06:36 +00:00
a7aed9957d
Build fix
...
This was SVN commit r9448.
2011-05-05 16:24:06 +00:00
5c76bc12fa
refactor status code definitions: allow modules to define an array of them (more convenient+efficient).
...
merge ERR::NO_SYS, NOT_IMPLEMENTED into NOT_SUPPORTED
renderer: remove unnecessary ogl_shader include
This was SVN commit r9447.
2011-05-05 13:03:34 +00:00
fd561cb88b
hotloading fix on Windows
...
refs #781
This was SVN commit r9446.
2011-05-05 10:50:47 +00:00
a741fb2f33
fix ChooseCacheSize - more simple, no longer relies on available-memory reporting (because Linux has a weird understanding of "available")
...
closes #611 , refs #832
This was SVN commit r9445.
2011-05-05 09:53:07 +00:00
508f56d2dd
Fixes bug in triple-click unit selection for units without a SelectionGroupName defined. In this case, triple-click will behave the same as double-click.
...
This was SVN commit r9444.
2011-05-05 02:06:53 +00:00
26de01cdd1
Adjusts unit selection behavior to account for ranks. Triple-click now selects units regardless of their rank.
...
Adds modifier hotkey to select units offscreen.
Fixes #826 .
This was SVN commit r9443.
2011-05-05 01:27:49 +00:00
dcec9c4ca9
gracefully handle the case where the file cache is full of data still referenced elsewhere.
...
fixes #832
This was SVN commit r9437.
2011-05-04 22:19:38 +00:00
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
fa16181e84
Fix build error in tests.
...
Don't call wrealpath on the value returned by GetArg0, since it breaks
the tests and changes the semantics of that function.
This was SVN commit r9427.
2011-05-04 14:40:14 +00:00
b560ff5fb7
Fix warning from cccd6849a7
...
This was SVN commit r9426.
2011-05-04 14:18:16 +00:00
9719432ff9
fix memory leak (wasn't freeing the entire chain of SMBIOS structures)
...
This was SVN commit r9425.
2011-05-04 13:08:09 +00:00
a7152270f4
Path now goes to some trouble to prevent mixing / and \ slashes (causes trouble when hotloading, and some Windows APIs can't handle it, either)
...
WARNING: that means stuff like Path(nativeDataPath/"art/") is forbidden
and will raise errors on Windows when nativeDataPath contains \. always
use /"" to add a trailing slash. never embed "/" in OsPath component
strings (it's OK for VFS strings since they consistently use /).
wdir_watch, CmdLineArgs: avoid mixed separators
wutil: remove overzealous assertion (infinite recursion if an error
arose before we create a window)
refs #781
This was SVN commit r9424.
2011-05-04 12:16:51 +00:00
7523894760
ENSURE(0) -> DEBUG_WARN_ERR(ERR::LOGIC) (a bit smaller, and more descriptive)
...
This was SVN commit r9423.
2011-05-04 12:10:17 +00:00
9733affb05
Fix non-PCH build
...
This was SVN commit r9419.
2011-05-04 01:17:09 +00:00
178a700c16
Fix build
...
This was SVN commit r9412.
2011-05-03 15:58:25 +00:00
cce3bebe0c
fix error propagation/avoid SetLastError pollution
...
This was SVN commit r9411.
2011-05-03 13:46:35 +00:00
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
333c62a490
Report errors in GL limit detection properly.
...
Report slightly more detailed RAM and CPU data.
This was SVN commit r9405.
2011-05-02 23:46:56 +00:00
674eaa1283
Latest version of user-report server code
...
This was SVN commit r9393.
2011-05-02 15:47:12 +00:00
88c44c7d73
smbios: add support for structures 34,35,36,39,41 (found on rather new BIOS)
...
This was SVN commit r9377.
2011-05-01 12:18:45 +00:00
b371686fb7
Rename class to prevent conflict between generated auto_ptr symbols in Atlas and engine
...
This was SVN commit r9371.
2011-04-30 21:08:53 +00:00
1636f062a3
make VFS thread-safe, per long-standing request by Philip
...
This was SVN commit r9369.
2011-04-30 15:57:43 +00:00
635c2a12e2
add error code for file not found. return error code from io::Load, warn and return from io::Store (both without triggering assertions).
...
remove out of date comment in io.cpp
fixes #811
This was SVN commit r9368.
2011-04-30 15:41:19 +00:00
3ac72813ef
Relinquish CPU when running RMS scripts, to speed up loading on single-core machines
...
This was SVN commit r9366.
2011-04-30 15:18:11 +00:00
791ecee26b
Build fixes
...
This was SVN commit r9365.
2011-04-30 13:55:55 +00:00
5ca66fc757
cleanup: move ADTs into lib/adts (separate files). fix definition of ASSERT
...
This was SVN commit r9364.
2011-04-30 13:35:36 +00:00
0720025073
cleanup
...
reduce dependency on PCH. move KiB constants to alignment, ARRAY_SIZE to
code_annotation.h.
move glext_funcs.h to external_libraries/glext_funcs.h, move part of
ogl.h to external_libraries/opengl.h
remove unused saturating arithmetic functions
This was SVN commit r9363.
2011-04-30 13:22:46 +00:00
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
6c915291cc
cleanup (requires update-workspaces):
...
major refactor of wfilesystem - remove gotos and workaround for FAT file
times
replace more round_up of constants with Align<>
remove old unused allocators (STL aligned, matrix, some shared_ptr)
move allocator utils into separate headers.
remove lockfree, wterminal
avoid testing __cplusplus
This was SVN commit r9361.
2011-04-30 12:34:28 +00:00
188c020ae0
Fix reading outside buffer, when terrain alpha maps are 8-bit.
...
Change alpha map composite texture to 8-bit to avoid wasting memory.
Warn about non-square alpha maps.
This was SVN commit r9360.
2011-04-30 11:46:23 +00:00
9bdb54bc76
fix failure to preallocate disk space on Windows by always rounding up the file size regardless of the io::Parameters
...
This was SVN commit r9358.
2011-04-30 09:13:10 +00:00
e292c55e94
Delete warning-prone unused unusable event recording code
...
This was SVN commit r9355.
2011-04-30 00:06:30 +00:00
f22e40b64c
Fix warning
...
This was SVN commit r9354.
2011-04-29 23:55:47 +00:00
335e7db6be
Fix build more
...
This was SVN commit r9353.
2011-04-29 23:30:29 +00:00
34ba390a0d
build fix for pre-C++0x compilers.
...
archive_zip, stream: work around possibly missing support for
std/tr1::bind in GCC by defining a functor manually
also renamed RVREF to RVALUE_REF and ensured RVALUE can convert from
both lvalue and rvalue.
io: avoid dodgy constants and possible overflow by using blockSize=0 to
indicate "don't split"
This was SVN commit r9352.
2011-04-29 22:55:35 +00:00
1139124451
Fix some build errors and warnings
...
This was SVN commit r9351.
2011-04-29 20:38:13 +00:00
2374caac3e
major refactor of file/io and alignment code. requires update-workspaces
...
. completely rewrite waio - use IOCP, add several hardcore
optimizations. now outperforms the
AS SSD and ATTO benchmarks when writing
. refactor file interface - use LIO_READ instead of 'r', allow access to
file descriptor.
. completely rewrite the IO wrapper. now much more simple, less CPU
overhead, adds
support for pre-issue/post-completion hooks and preallocation.
io::Run defaults to simple synchronous IO; use io::Parameters to get
asynchronous.
. add alignment.h with constants and Align() function template (more
efficient than
round_up for compile-time constants)
. add UniqueRange - similar to C++0x unique_ptr (emulated for C++03),
plus a
built-in size. avoids expensive thread-safe reference counting in
shared_ptr.
cleanup:
- move fat_time functions into archive_zip
- remove no longer needed io_align and block_cache
- reduce dependencies in sysdep/compiler (move parts to
code_annotation.h)
- move IOCP into separate file (reused by waio)
This was SVN commit r9350.
2011-04-29 19:10:34 +00:00
d96fefd4a4
Fix linker errors with GCC 4.6, and some warnings.
...
This was SVN commit r9346.
2011-04-29 16:32:58 +00:00
8af82baf67
# Minor particle system fixes.
...
Support emitters that are fully running as soon as the game starts.
Fix particle clumping when moving from off-screen to on-screen, by
computing updates more incrementally.
Fix overzealous culling of models with particle emitters.
Add particles to renderer stats.
This was SVN commit r9345.
2011-04-29 12:26:31 +00:00
67ca7461cd
Adds Skip method to SGUIMessage which works more or less like wxEvent.Skip: GUI objects can allow other event handlers to process an input event after they finish.
...
Allows hotkey handling of mousewheel events after minimap. Fixes #673 .
Adds SendEvent to GUI objects, used in place of separate calls to
HandleMessage and ScriptEvent.
This was SVN commit r9340.
2011-04-28 20:42:11 +00:00
9d5539a215
fix runtime check error - see http://www.wildfiregames.com/forum/index.php?showtopic=14656&pid=218675&st=0&#entry218675
...
thanks to Yves for reporting this + suggesting the fix.
This was SVN commit r9339.
2011-04-28 17:13:55 +00:00
4e74798585
Be more robust to visibility checks outside the map. Fixes #765 .
...
This was SVN commit r9333.
2011-04-27 21:03:08 +00:00
e4b530fb1a
Clean up some GL state explicitly
...
This was SVN commit r9331.
2011-04-27 20:12:58 +00:00
a872e4a6ad
Attempt to fix reported GL error
...
This was SVN commit r9327.
2011-04-27 09:41:28 +00:00
2d0c183afb
Fix use of uninitialised variable, causing errors randomly when GL_ARB_fragment_program_shadow is missing
...
This was SVN commit r9310.
2011-04-23 18:51:47 +00:00
2d04d78db8
Disable apparently buggy shader mode on r300c drivers. Fixes #780 .
...
This was SVN commit r9308.
2011-04-23 17:06:27 +00:00
5a773d4ca0
Be robust to null proxy URL strings. Should fix #778 .
...
This was SVN commit r9299.
2011-04-22 16:05:00 +00:00
c82d619cc4
Make decals only rotate around the Y axis, to avoid buggy stretched appearance when rotated non-horizontally
...
This was SVN commit r9298.
2011-04-22 13:19:23 +00:00
91ad17c685
Fix entity ID association with animations. Fixes #790 .
...
This was SVN commit r9286.
2011-04-20 00:04:05 +00:00
6d946cc58d
Fix badly-named variable
...
This was SVN commit r9285.
2011-04-20 00:02:59 +00:00
b35d3a5e3d
__cpuidex was added in VC2008 SP1, so don't use it if pre-SP1
...
This was SVN commit r9284.
2011-04-19 23:23:16 +00:00
7ec3266da5
Fix assertion failures when running RMS in debug mode
...
This was SVN commit r9282.
2011-04-18 17:10:57 +00:00
458cfbf48c
Fix 64-bit build error
...
This was SVN commit r9279.
2011-04-16 22:57:00 +00:00
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
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
f072b47dc1
Warn earlier about some non-thread-safe calls.
...
This was SVN commit r9252.
2011-04-14 14:28:24 +00:00
57e6980465
Fix 64-bit build. Avoid using variable-sized types in Atlas message interface.
...
This was SVN commit r9251.
2011-04-14 14:27:42 +00:00
bf53b6f3b5
This was SVN commit r9248.
2011-04-14 04:16:06 +00:00
ad6f305359
Integrates random maps with Atlas. Fixes #460 .
...
Adds various map controls to Atlas.
Adds New Map dialog to Atlas.
Removes a few references to old simulation header files.
This was SVN commit r9247.
2011-04-14 04:01:59 +00:00
73add20727
Load original Pagella .otf font with hinting explicitly disabled, instead of loading via .ttf
...
This was SVN commit r9243.
2011-04-13 22:15:04 +00:00
5a8d291403
Remove old vertexshader renderpath option from Atlas
...
This was SVN commit r9236.
2011-04-13 18:28:27 +00:00
818b02b0fc
Fixes a few error cases in the map generator.
...
This was SVN commit r9224.
2011-04-10 22:21:15 +00:00
942a45372c
Random maps generated in their own thread, loading GUI is updated with progress.
...
Fixes some bugs in game loader error handling.
This was SVN commit r9220.
2011-04-10 05:31:18 +00:00
469d0fe5c5
Remove rmgen tool.
...
Log error description when sound engine fails (instead of cryptic
LibError code).
This was SVN commit r9219.
2011-04-10 00:54:15 +00:00
a3812af176
smbios: avoid warning when no information is returned (happens on 32-bit XP)
...
This was SVN commit r9218.
2011-04-09 17:09:48 +00:00
c59f7bcb8f
Fix Clang warning ("operands of ? are integers of different signs")
...
This was SVN commit r9214.
2011-04-09 00:07:21 +00:00
bd0063607a
Fix build in Clang
...
This was SVN commit r9213.
2011-04-09 00:05:37 +00:00
7a8aefae34
Fix release-mode warnings in unused code
...
This was SVN commit r9212.
2011-04-09 00:05:00 +00:00
d46a892a5d
smbios: avoid displaying unknown maxError value; add enumerators for BIOS characteristics and extended characteristics
...
This was SVN commit r9207.
2011-04-08 07:10:31 +00:00
8f6fda9626
Deallocate expired projectiles properly
...
This was SVN commit r9205.
2011-04-08 00:11:27 +00:00
50e30ae8af
Be more explicit about function types in font builder to fix crash
...
This was SVN commit r9201.
2011-04-07 19:59:34 +00:00
5b7dbe6bc9
smbios: more convenient interface that avoids having to check if the structures pointer is null (can still detect failure by checking whether all/guaranteed member pointers are zero)
...
This was SVN commit r9200.
2011-04-07 19:35:45 +00:00
b5c6868ac2
smbios SystemSlot fix: add missing field, avoid displaying unknown device/function numbers
...
This was SVN commit r9199.
2011-04-07 19:28:24 +00:00
aab98f90e0
Fix startup crash on non-Windows
...
This was SVN commit r9197.
2011-04-07 17:22:28 +00:00
e1b9083c41
Fix probable OS X build error
...
This was SVN commit r9196.
2011-04-07 17:18:32 +00:00
99aa427ffa
make use of SMBIOS information to detect CPU frequency and memory size
...
smbios fixes: also ignore max value (used by Dell BIOS to report invalid
MemoryDevice bit width); fix incorrect error check that caused 0 to be
returned on all but the first call; add implicit conversion operator to
allow using size without appending .value
This was SVN commit r9195.
2011-04-07 17:06:00 +00:00
e5e9e38532
Fix GCC 4.6 "set but not used" warnings
...
This was SVN commit r9194.
2011-04-07 16:34:51 +00:00
2b138f47db
Handle map loading errors in autostart and normal setup modes. Adds TODOs for Atlas and Replay modes. See #764 .
...
Fixes loading screen 'title'.
Fixes broken autostart behavior for random maps and multiplayer games.
This was SVN commit r9193.
2011-04-07 02:32:16 +00:00
ed62b49a74
Renderer simplification: Remove now-unused texgen stream.
...
This was SVN commit r9190.
2011-04-06 22:09:58 +00:00
1866c2d3b7
Renderer simplification: Remove non-FBO shadow mode.
...
This was SVN commit r9189.
2011-04-06 22:08:51 +00:00
a1eb830f2c
Renderer simplification: Remove old non-depth-texture shadows.
...
This was SVN commit r9188.
2011-04-06 22:08:07 +00:00
7339a346e3
Renderer simplification: Remove fixed-function shadowing. Remove now-unused diffuse-only model lighting mode.
...
This was SVN commit r9187.
2011-04-06 22:07:13 +00:00
8753f881ee
Renderer simplification: Remove old vertexshader path.
...
This was SVN commit r9186.
2011-04-06 22:02:05 +00:00
06903af31f
Fixes build warning in C/C++ preprocessor (moves initialization outside test expression)
...
This was SVN commit r9185.
2011-04-06 21:47:42 +00:00
a122f55bde
Avoid hardcoding the actor entity template details.
...
This was SVN commit r9183.
2011-04-06 21:01:00 +00:00
df4b74ccf6
Render animationless skeletal meshes in their bind pose at their current position, instead of rendering at the world's origin.
...
This was SVN commit r9182.
2011-04-06 13:49:05 +00:00
3fb9d9e5f6
Fix tests
...
This was SVN commit r9178.
2011-04-06 00:53:35 +00:00
e9cc697c2b
Animate particles in the default editor view
...
This was SVN commit r9177.
2011-04-06 00:22:07 +00:00
d03559f2c9
Add dust particles on under-construction buildings, varying based on number of active builders.
...
This was SVN commit r9175.
2011-04-06 00:11:40 +00:00
2fd4c62cbb
Remove some unused variable declarations
...
This was SVN commit r9174.
2011-04-06 00:04:35 +00:00
29dd635d3b
Fix decals and LOS texture in Actor Viewer, by slightly reducing use of globals.
...
Fix particles in Actor Viewer.
Expand terrain in Actor Viewer.
Change background to black so it blends with the LOS texture more
nicely.
This was SVN commit r9172.
2011-04-05 20:32:03 +00:00
329d044a9e
64-bit gcc warning fix
...
This was SVN commit r9171.
2011-04-05 19:49:04 +00:00
dcde67038f
ICC compile fixes (VC's overload resolution is apparently quite different)
...
This was SVN commit r9169.
2011-04-05 17:45:47 +00:00
1c2e410b7d
final smbios improvements.
...
add comments
add support for bit flags
use wrapper classes and SFINAE instead of flags to detect enums / sizes
/ handles
avoid potential truncation of byte sizes
avoid displaying numeric_limits::min values ("unknown")
This was SVN commit r9168.
2011-04-05 17:14:18 +00:00
d3ba9a24d3
Fix GCC build errors ("explicit template specialization cannot have a storage class",
...
"need 'typename' before 'static_assert_<...>::type' because
'static_assert_<...>' is a dependent scope").
Fixes #767 .
This was SVN commit r9167.
2011-04-05 17:07:06 +00:00
3dbb29d665
smbios improvements: add specializations for bool/Handle (no longer requires a flag); omit empty/meaningless fields
...
convert remaining enumerators to ENUM, lowercase them to avoid conflicts
with macros, wrap them in struct to allow identical enumerator names
This was SVN commit r9165.
2011-04-05 09:52:57 +00:00
f35da41a0c
smbios: minor fixes, add partial support for displaying enumerator names, move visitors to .cpp, use pragma pack regardless of compiler
...
This was SVN commit r9163.
2011-04-04 17:44:36 +00:00
68bc0a5651
smbios: add support for stringizing the structures
...
This was SVN commit r9162.
2011-04-04 16:50:02 +00:00
a2bad46f27
smbios fixes:
...
- memmove all bytes in the table, not just 8
- end pointer was off by 4
- add support for structures 8,10,22,26,27,28
This was SVN commit r9161.
2011-04-04 15:01:40 +00:00
6beb1ea89b
Exclude FCollada tests from Unix releases, since they rely on non-free data file Eagle.DAE
...
This was SVN commit r9160.
2011-04-04 14:20:16 +00:00
1abbf8b64b
Old changes to compress releases better
...
This was SVN commit r9159.
2011-04-04 14:17:39 +00:00
0ddf2b0f34
Fix build on VC2008
...
This was SVN commit r9157.
2011-04-03 21:41:17 +00:00
66807d40c1
windows build fix: use arb names/function pointers; +noncopyable/struct vs. class warning fix
...
This was SVN commit r9156.
2011-04-03 20:45:43 +00:00
3d21cf98f9
better aio error checking / avoid unnecessary repeated calls to aio_error (investigated on the occasion of the recent Linux aio trouble)
...
This was SVN commit r9155.
2011-04-03 20:07:55 +00:00
231387d2da
linux compile fix (explicit instantiation must be at namespace scope), adjust end pointer to match 8 bytes removed in workaround
...
This was SVN commit r9153.
2011-04-03 19:29:16 +00:00
823e63a93b
# Initial version of new particle system.
...
This was SVN commit r9151.
2011-04-03 19:15:15 +00:00
01a0825c94
disable aio on linux until the glibc aio implementation and/or kernel is fixed (see http://www.wildfiregames.com/forum/index.php?showtopic=14561&pid=217711&st=0&#entry217711 )
...
This was SVN commit r9150.
2011-04-03 19:07:35 +00:00
253efdad57
Delete non-working particle system code
...
This was SVN commit r9147.
2011-04-03 18:49:48 +00:00
09413d940c
Delete an obsolete particle system editor
...
This was SVN commit r9145.
2011-04-03 18:44:20 +00:00
2c72e1f364
(requires update-workspaces)
...
add initial SMBIOS implementation for retrieving system information
wacpi -> wfirmware (now also used to retrieve SMBIOS table)
This was SVN commit r9144.
2011-04-03 15:38:48 +00:00
1a072a3f37
Use a predictable RNG seed for random actor variations, so they are consistent between runs of the game.
...
This was SVN commit r9143.
2011-04-02 12:51:42 +00:00
97c934ad1c
Apply unit shading colour in shader renderpath.
...
Don't adjust the shading colour of units in FoW (the shading comes from
the LOS texture instead).
This was SVN commit r9142.
2011-04-02 12:04:19 +00:00
012c47057a
Optimise some matrix operations, based on patch from ortalo.
...
Fixes #750 .
This was SVN commit r9141.
2011-04-01 18:33:47 +00:00
ce85f4e825
Fix minimap ignoring GUI z-ordering.
...
This was SVN commit r9139.
2011-04-01 17:58:33 +00:00
5b7a23f75c
Make ResetCameraTarget more sensible if the camera was rotated.
...
This was SVN commit r9138.
2011-04-01 17:57:04 +00:00
6026330fce
updated version of Aken that includes support for MSR and static validation (-> .c instead of .cpp)
...
closes #754 (please re-open if not)
This was SVN commit r9137.
2011-04-01 15:06:52 +00:00
d5b3201bfe
noted while checking MSR prerequisites that the previous HasNehalem is inaccurate. PLATFORM_INFO is also supported by newer processors (e.g. Sandy Bridge), whereas UNCORE_* are tied to Nehalem and Westmere => split up HasNehalem into HasPlatformInfo and HasUncore. (the latter has been replaced by a "system agent" in newer designs)
...
refs #754
This was SVN commit r9136.
2011-03-31 21:30:42 +00:00
1014da1f88
Use pool allocator to avoid apparently expensive dynamic allocations when rendering terrain.
...
Add function to get pool usage, for debugging.
This was SVN commit r9132.
2011-03-30 21:42:35 +00:00