Commit Graph

4907 Commits

Author SHA1 Message Date
c0ed950657 had to remove uint and ulong from lib/types.h due to conflict with other library.
this snowballed into a massive search+destroy of the hodgepodge of
mostly equivalent types we had in use (int, uint, unsigned, unsigned
int, i32, u32, ulong, uintN).

it is more efficient to use 64-bit types in 64-bit mode, so the
preferred default is size_t (for anything remotely resembling a size or
index). tile coordinates are ssize_t to allow more efficient conversion
to/from floating point. flags are int because we almost never need more
than 15 distinct bits, bit test/set is not slower and int is fastest to
type. finally, some data that is pretty much directly passed to OpenGL
is now typed accordingly.

after several hours, the code now requires fewer casts and less
guesswork.

other changes:
- unit and player IDs now have an "invalid id" constant in the
respective class to avoid casting and -1
- fix some endian/64-bit bugs in the map (un)packing. added a
convenience function to write/read a size_t.
- ia32: change CPUID interface to allow passing in ecx (required for
cache topology detection, which I need at work). remove some unneeded
functions from asm, replace with intrinsics where possible.

This was SVN commit r5942.
2008-05-11 18:48:32 +00:00
9951af47c7 This was SVN commit r5939. 2008-05-09 23:31:31 +00:00
xrenmilay
07cacef845 This was SVN commit r5937. 2008-05-09 17:20:27 +00:00
a164dfa14c This was SVN commit r5927. 2008-05-08 20:20:09 +00:00
6d28f12c25 This was SVN commit r5924. 2008-05-08 04:45:14 +00:00
66dbb059ea This was SVN commit r5923. 2008-05-08 04:13:49 +00:00
690d33d5e8 This was SVN commit r5922. 2008-05-08 00:42:18 +00:00
191c05864e This was SVN commit r5921. 2008-05-08 00:30:04 +00:00
8b572bca35 This was SVN commit r5920. 2008-05-08 00:11:31 +00:00
5a0403b083 Fixed waterfall_31.ogg loop, and adjusted overall levels of water sounds to be clear and consistant with eachother
This was SVN commit r5919.
2008-05-07 23:14:20 +00:00
500e22ab6f Updated svn:ignore for some auto-generated files
This was SVN commit r5917.
2008-05-07 23:04:46 +00:00
547c9d4017 This was SVN commit r5916. 2008-05-07 23:00:39 +00:00
489f5bf3ed This was SVN commit r5915. 2008-05-07 22:53:30 +00:00
b78cd2806f This was SVN commit r5914. 2008-05-07 22:47:51 +00:00
6fe0c0d7a3 This was SVN commit r5913. 2008-05-07 22:10:31 +00:00
08e8011960 This was SVN commit r5912. 2008-05-07 07:42:15 +00:00
7466c60302 This was SVN commit r5911. 2008-05-07 07:38:16 +00:00
364481443e This was SVN commit r5910. 2008-05-06 04:16:15 +00:00
50c1770f35 This was SVN commit r5909. 2008-05-06 04:09:04 +00:00
9ffb6960e5 This was SVN commit r5908. 2008-05-05 03:10:17 +00:00
39f4414f26 This was SVN commit r5907. 2008-05-05 03:04:15 +00:00
7a119c4cee This was SVN commit r5906. 2008-05-05 01:07:43 +00:00
8877ef5bcd This was SVN commit r5905. 2008-05-05 00:56:09 +00:00
772b59a10c This was SVN commit r5904. 2008-05-04 23:43:23 +00:00
00707af3ee This was SVN commit r5903. 2008-05-04 20:11:21 +00:00
e6e47396ba This was SVN commit r5902. 2008-05-04 19:24:37 +00:00
c59ed94bde This was SVN commit r5901. 2008-05-04 18:31:54 +00:00
6382cb2989 This was SVN commit r5900. 2008-05-04 06:37:50 +00:00
cc243f67eb fixes/improvements made at work:
- fix lots of 64-bit warnings
- round_up/down now templates
- avoid warning with definition of byte swap functions; remove
duplication of that in wsdl
- codec_zlib.cpp: avoid domination warning
- vfs/file_cache: VFS is now responsible for handling zero-length files
(no longer considered an error; just returns zero pointer and size=0)
- cpu: export all functions (thus obviating cpu_memcpy_thunk). this
required renaming asm functions and adding thunk functions that call
them
- winit: fix segment merge statement, reinstate /include (otherwise init
functions are stripped by linker)
- wstartup: VC CRT init section definitions have changed in amd64 build;
match their definition
- wsysdep.cpp: more descriptive text for osError = 0

This was SVN commit r5899.
2008-05-01 15:41:42 +00:00
3892f03e2e Use windowed mode by default.
This was SVN commit r5898.
2008-04-27 18:09:09 +00:00
6b2e37f2c7 This was SVN commit r5897. 2008-04-24 06:48:14 +00:00
a915bdc1b6 fix problems related to 64-bit compilation in lib
. dbghelp is now pulled in by a separate external_libraries header
. disable _SECURE_SCL (improves perf)
. amd64: initial implementation of essential functions, not yet complete
. manifest: disabled on ICC because its IPO module incorrectly
interprets /manifestdependency
. wdbg_sym: no longer support stack walks on non-ia32 win2k (avoids
trouble due to mixing SEH and dtors)
. winit and wstartup: had to remove forced symbol include - does not
link otherwise on ICC (for reasons unknown). function pointers are
actually included and called on x64 windows (compiling with MSC)

This was SVN commit r5895.
2008-04-19 18:10:00 +00:00
de9cfc6592 bucket: all routines exported, add bucket_fast_alloc
This was SVN commit r5894.
2008-04-19 17:35:28 +00:00
xrenmilay
68cc62e6b9 This was SVN commit r5892. 2008-04-17 02:52:30 +00:00
xrenmilay
f6dedfa6f5 This was SVN commit r5891. 2008-04-17 02:41:04 +00:00
xrenmilay
f83ed02dc2 This was SVN commit r5890. 2008-04-16 22:36:01 +00:00
xrenmilay
fe73879a01 This was SVN commit r5889. 2008-04-16 22:16:31 +00:00
e76a15d19d Fixed unused argument warning.
Trying post-commit hook again: fixed #194.

This was SVN commit r5885.
2008-04-15 13:49:08 +00:00
00cdb335c6 Skip standalone document declaration in generated XML, since it's pointless.
Unrelated to this checkin, fixed #194.

This was SVN commit r5884.
2008-04-15 13:45:17 +00:00
7d82d87ce8 [requires workspace rebuild due to added directory]
replace ONCE with direct calls to ScriptingInit in simulation/network
code as well.
note: GameSetup is now responsible for calling ServerSession's init
instead of Server doing it

added simulation/scripting with a module that takes care of all
scripting init (reduces CCD)

This was SVN commit r5883.
2008-04-13 14:50:11 +00:00
9cde0f45b7 remove some DLLs from the delayload list that shouldn't be there (DL doesn't make sense)
[this is a good time because the next commit requires workspace rebuild
anyway]

This was SVN commit r5882.
2008-04-13 14:48:10 +00:00
59db469f0f This was SVN commit r5881. 2008-04-11 06:22:59 +00:00
2fda078fcc Started making wood construction sounds more detailed by adding layers
This was SVN commit r5879.
2008-04-11 05:11:08 +00:00
28e9ef4743 This was SVN commit r5877. 2008-04-10 23:35:14 +00:00
da22475af9 This was SVN commit r5876. 2008-04-10 23:34:50 +00:00
e7c3f7bcea This was SVN commit r5875. 2008-04-10 23:34:10 +00:00
0f30c4303f This was SVN commit r5874. 2008-04-10 05:50:27 +00:00
1751f0436a This was SVN commit r5873. 2008-04-10 04:38:05 +00:00
7c3c73c923 This was SVN commit r5872. 2008-04-09 01:24:57 +00:00
af6694262a cleanup:
remove ONCE(ScriptingInit) constructs, replace with direct call from
GameSetup
revised GameSetup's InitScripting (organize into groups)
JSCollection: remove #define of two concrete collection types (made
typedef, moved to their respective entity.h and player.h)

This was SVN commit r5871.
2008-04-06 14:03:23 +00:00