janwas
14ec3a3026
minor fixes:
...
whrt: output timer implementation info, fix assert ( 1/(x-epsilon) < 1/x
+ epsilon )
wsdl: fix slightly incorrect gamma values (first and last are now
exactly 0 and 1)
This was SVN commit r6321.
2008-08-10 11:02:25 +00:00
janwas
a3b7e8c08c
needed unicode at work:
...
debug: reinstate wchar_t version of debug_printf
file, waio: add hack to allow creating File_Posix with unicode path
wposix: no longer include some rarely-used stuff to avoid conflict with
3rd party libraries
precompiled: bring boost::bind into global namespace (present in TR1)
dir_watch: needed directory watching with unicode paths and larger
buffers at work, so I completely overhauled and documented this
timer: add ToSeconds
SocketBase: fix to ensure correct match despite ::bind's conflict with
boost::bind
This was SVN commit r6319.
2008-08-09 19:22:13 +00:00
Matei
5d35f6bfe0
Increase turn length to 300ms to work better with lag.
...
This was SVN commit r6318.
2008-08-08 05:57:10 +00:00
Matei
98dd1a1bb4
Refactored "generic" order to just call it "contact action", and added support for intercepting targets if performing a contact action while moving.
...
This was SVN commit r6290.
2008-07-29 08:22:56 +00:00
Matei
0e8b7c5bc7
Removed some long commented out code.. no point keeping it there since it's in SVN.
...
This was SVN commit r6289.
2008-07-29 07:01:23 +00:00
Matei
435ac684e3
Fixed an bug where double-clicking on the minimap, or dragging the view and them leaving the minimap window, did not clear the "clicking" flag and caused further mouse motion to move the view around.
...
This was SVN commit r6288.
2008-07-29 06:56:38 +00:00
Matei
d0c6805725
Fixed bug that was causing population to go negative. It was due to a unit being killed by multiple enemies in the same frame, which led to multiple calls of the death event handler. The fix is twofold: First, kill() only calls the event handler the first time the unit is killed. Second, damage() (in JS), which apart from killing things also loots them, makes sure that the unit is not already being destroyed. This latter fix is to ensure that we don't get a huge amount of loot by simply attacking a low-HP unit with many soldiers simultaneously, so they kill it in the same frame.
...
This was SVN commit r6276.
2008-07-24 05:50:45 +00:00
Matei
75a9b2f357
Made stance-setting work with multiplayer.
...
This was SVN commit r6274.
2008-07-24 05:25:14 +00:00
janwas
fa7ce687f0
fix error handling - ensure SoundGroup doesn't crash when sound loading fails (previously it was only handling the case where loading failed due to sound being disabled)
...
This was SVN commit r6269.
2008-07-23 05:39:54 +00:00
Matei
aebe9a7936
Added active field to players to check whether the player is a human or CPU.
...
This was SVN commit r6267.
2008-07-23 05:21:57 +00:00
janwas
9f909073b4
fixes from work
...
- file: prevent error when closing a file twice (e.g. close and dtor)
- file_system_posix: export from DLL
- path_util: add some unicode versions of functions
- ia32: robustify, prevent hook reentry due to failure in disassembly,
gracefully handle breakpoints that overwrite code
- wdbg_heap: fix wdbg_heap_Validate
This was SVN commit r6264.
2008-07-21 20:43:37 +00:00
Ykkrosh
b979033385
Stopped CLogger outputting error messages with debug_printf while in test cases that are intentionally triggering errors.
...
This was SVN commit r6259.
2008-07-19 19:02:27 +00:00
janwas
e063542a5f
fix memory leak in leak detection code :P
...
This was SVN commit r6257.
2008-07-19 18:35:33 +00:00
freenity
6eb29f76d3
Already existed as a property.
...
This was SVN commit r6256.
2008-07-19 02:43:35 +00:00
Ykkrosh
a3fb9051b6
Fix MSVC build errors and warnings
...
This was SVN commit r6254.
2008-07-19 00:58:34 +00:00
Ykkrosh
8f6d3a75a5
(Missed from previous commit)
...
This was SVN commit r6253.
2008-07-19 00:40:08 +00:00
Ykkrosh
0f9294ce17
Fixed some strict aliasing warnings
...
This was SVN commit r6252.
2008-07-19 00:36:42 +00:00
Ykkrosh
fbc3d22720
Use GCC's std::tr1::unordered_* classes instead of the now-deprecated __gnu_cxx::hash_* when possible
...
This was SVN commit r6250.
2008-07-19 00:20:54 +00:00
Ykkrosh
0b32d1b674
Fix warning about static_assert being a future (TR1) keyword
...
This was SVN commit r6249.
2008-07-19 00:13:53 +00:00
freenity
afae8e6c7d
Adding the getName() method to be used from JS scripts.
...
This was SVN commit r6248.
2008-07-18 23:55:13 +00:00
Ykkrosh
5fcd1601a1
Fixed multi-line comment warning
...
This was SVN commit r6247.
2008-07-18 23:52:29 +00:00
Ykkrosh
6d92213077
Fixed "it=it=map.begin()" typo
...
This was SVN commit r6246.
2008-07-18 23:51:44 +00:00
Ykkrosh
4e539a652f
Fixed one set of annoying DCDT warnings
...
This was SVN commit r6245.
2008-07-18 23:49:51 +00:00
freenity
8f46070b2e
Reverting a change from #6239 because of the compilation error.
...
This was SVN commit r6244.
2008-07-18 23:00:04 +00:00
janwas
fe6370aff8
more dehydra. disabled lockfree module (not in use).
...
This was SVN commit r6240.
2008-07-17 17:00:00 +00:00
janwas
8e86d29301
dehydra fixes (mostly copy-ctor warnings)
...
This was SVN commit r6239.
2008-07-17 14:23:51 +00:00
Matei
0cbb38bfd9
Fixed 3+ player games. The problem was the FinalizeSlots method in GameAttributes, which confused player and slot IDs by deleting nonexistent slots/players from the array. Since this doesn't seem particularly useful (and is even undesirable for scenarios where some players *want* to be the last slot and to leave others empty), I commented it out rather than having the code incur the extra complexity of supporting renumberings.
...
This was SVN commit r6228.
2008-07-14 06:40:05 +00:00
janwas
4027a8f11b
dehydra-inspired fix: get rid of all using namespace std (potentially confusing / pollutes namespace).
...
Long iterator type names are better expressed via typedefs, anyway :)
(or 'auto' keyword of upcoming C++09)
This was SVN commit r6226.
2008-07-13 21:22:03 +00:00
Matei
9025056ffd
Made rally point setting net-safe.
...
This was SVN commit r6225.
2008-07-13 17:37:45 +00:00
Matei
36b18f646f
Added shouldRun parameter to order(ORDER_GENERIC) calls from scripts.
...
This was SVN commit r6224.
2008-07-13 16:31:03 +00:00
Matei
e4966f6f1b
Added running support to GENERIC orders through a field that can be sent across the network (previous implementation used to be by setting properties on the entity itself).
...
This was SVN commit r6223.
2008-07-13 06:24:50 +00:00
Matei
d5fedc7c76
Fixing some multiplayer issues:
...
a) Run commands were not being sent accross properly because the JS just
directly set flags on the entity. Note: The current fix has the
side-effect of making it no longer possible to double-rightclick a
target to charge, run-gather, etc. That will be fixed in a later commit.
b) EntityLists were serialized in a format that made it impossible to
deserialize a zero-length list.
This was SVN commit r6221.
2008-07-13 05:56:27 +00:00
freenity
7af5e039a7
Adding IsGameRunning() function
...
This was SVN commit r6218.
2008-07-12 21:27:38 +00:00
Matei
f6ac13c15a
Networking fixes - it now more or less works over ENet!
...
This was SVN commit r6216.
2008-07-12 19:08:38 +00:00
janwas
3c411dd174
large batch of Dehydra static code analysis fixes
...
(mostly passing arguments by const reference and checking LibError
return codes)
This was SVN commit r6214.
2008-07-12 10:45:11 +00:00
olsner
875260f60a
Minor fixes for OSX: stub for debug_set_thread_name, changed name for os_cpu_CallByEachCPU and changed header path for os-sysdeps
...
This was SVN commit r6207.
2008-07-06 19:52:55 +00:00
olsner
3be2bfa7ac
OSX implementation of rtl_AllocateAligned
...
This was SVN commit r6206.
2008-07-06 19:49:27 +00:00
janwas
1de82c5efe
add cppdoc (and fix a warning in ogl_shader)
...
This was SVN commit r6204.
2008-07-05 18:46:12 +00:00
janwas
ab7cd7a5fa
avoid two warnings:
...
- recompiled enet without /GL and /LTCG because the game's release mode
doesn't include those, either (due to their heavy compile-time impact)
- wdbg_heap: wrap all allocation-hook logic in #ifndef NDEBUG to avoid
unreferenced local function warnings
This was SVN commit r6201.
2008-07-05 09:41:23 +00:00
janwas
e14d5be529
timing-related fix (only occurs with certain timer resolutions due to incorrect arithmetic)
...
frequency_filter wasn't dealing correctly with resolution = 0
.. which was happening due to incorrect cpu_i64FromDouble macros
This was SVN commit r6200.
2008-07-05 08:27:33 +00:00
freenity
ea75498bab
This was SVN commit r6199.
2008-07-05 01:14:23 +00:00
janwas
aaccb15c0a
another 64-bit fix, we're now getting there :D
...
(the change is inside #if !GCC_VERSION so it can't break GCC)
adding specializations for (un)signed long sounds good, it's just that
x64 MSC still treats size_t as distinct but not ssize_t. removing the
latter makes it build on win32 and win64.
This was SVN commit r6198.
2008-07-04 19:25:52 +00:00
janwas
11b308c347
fix detection of amd64 on VC and avoid 64-bit warning
...
This was SVN commit r6197.
2008-07-04 19:10:09 +00:00
janwas
5b757e536f
fix: avoid reentering allocation hook if an error is raised within memory allocators
...
This was SVN commit r6196.
2008-07-04 18:02:54 +00:00
freenity
b46f8b9ed8
This was SVN commit r6195.
2008-07-04 16:03:20 +00:00
freenity
0ee1c9d2c4
This was SVN commit r6194.
2008-07-04 16:02:58 +00:00
olsner
6bf3e238e5
GCC fixes
...
This was SVN commit r6193.
2008-07-04 11:17:24 +00:00
olsner
984f3d2180
GCC fixes
...
This was SVN commit r6192.
2008-07-04 11:16:30 +00:00
olsner
b9c939402b
GCC fixes
...
This was SVN commit r6191.
2008-07-04 11:15:47 +00:00
olsner
2be5d5b752
More GCC/64-bit fixes
...
This was SVN commit r6190.
2008-07-04 11:10:18 +00:00