dhewg
99864667a7
Use PATH_MAX for MAX_OSPATH on all platforms
...
The hardcoded 256 doesn't cut it.
2012-07-03 21:10:45 +02:00
dhewg
f000947d4e
Fixes issues with MacOSX.
...
- Fixes compiler errors with mismatching types in DoomController.mm
- Adds PPC_INTRINSICS fix to Simd_Altivec.h
2012-06-28 14:08:39 +02:00
dhewg
112c00d409
Rename PVS vars to match their type
2012-06-28 13:52:26 +02:00
dhewg
902a9cee8a
s/ReadDeltaLong/ReadDeltaInt/
...
to match the argument type
2012-06-28 13:52:25 +02:00
dhewg
f767af9d72
s/WriteDeltaLong/WriteDeltaInt/
...
to match the return type
2012-06-28 13:52:25 +02:00
dhewg
822b0b84af
s/ReadDeltaLongCounter/ReadDeltaIntCounter/
...
to match the return type
2012-06-28 13:52:24 +02:00
dhewg
c51f59cb15
s/WriteDeltaLongCounter/WriteDeltaIntCounter/
...
to match the argument type.
2012-06-28 13:52:24 +02:00
dhewg
9034da11d0
s/ReadLong/ReadInt/ to match the return type
2012-06-28 13:52:24 +02:00
dhewg
94df46637a
s/WriteLong/WriteInt/ to match the argument type
2012-06-28 13:52:23 +02:00
dhewg
5f5a6e7043
s/BigLong/BigInt/ to match the return type
2012-06-28 13:52:22 +02:00
dhewg
49c4d028a5
s/LittleLong/LittleInt/ to match the return type
2012-06-28 13:02:47 +02:00
Daniel Gibson
0eb604c436
Use int instead of long in FS_WriteFloatString()
...
The correct type for %d, %i, %u, ... is int, not long.
Even if FS_WriteFloatString() didn't care about that, sprintf() (which is called
with the same format strings and the corresponding values) does.
2012-06-28 13:02:46 +02:00
Daniel Gibson
a0fb3cd699
Don't use long in CollisionModel_local.h
2012-06-28 13:02:46 +02:00
Daniel Gibson
e8f047bcb6
Use int instead of long in idCompressor_Arithmetic methods
...
They return int anyway, so using long doesn't make sense (and originally on
win32 it didn't make a difference anyway)
2012-06-28 13:02:46 +02:00
Daniel Gibson
600531ec98
Don't use long for DDS magic number
...
It's a DWORD (i.e. 32bit int) according to spec, so using long is
actually wrong when sizeof(long) == 8.
2012-06-28 13:02:46 +02:00
Daniel Gibson
0d27bfe7b9
Remove usage of long type from idlib/
...
Apart from some minor stuff, this changes the signature of some methods
of Parser and Token classes and of the (unused) Random2 class.
That no problem though, because the calling code uses normal ints
anyway.
2012-06-28 13:02:45 +02:00
Daniel Gibson
b9247b67b4
Remove longs from game/ and d3xp/
...
(Except for handling of longs in TypeInfo and win32-only Maya import stuff).
sizeof(long) == sizeof(int) on x86 and win64,
but not on 64bit (x86_64) linux/unix/osx/.. so they should be avoided.
2012-06-22 18:20:09 +02:00
Daniel Gibson
4244436d7d
Fix PVS calculations on 64bit systems
...
Monsters got stuck in same places of d3xp because PVS calculations
returned that they were not in the players PVS.
This only happened on LP64 systems like Unix/Linux amd64 where
sizeof(long) == 8 - it did not happen on Win64 because it's LLP64, i.e.
sizeof(long) == 4 (like on x86 32bit).
Bit fiddling code in Pvs.cpp seemed to assume that sizeof(long) == 4
like on win32.
Fixes #7 .
2012-06-22 16:13:08 +02:00
dhewg
8003056c18
Attempt at fixing annoying markdown crap
2012-06-20 23:27:02 +02:00
dhewg
b9cc8548dc
Remove leftover X11 header
2012-06-15 18:25:48 +02:00
Daniel Gibson
94cd0ee559
Fix several bugs from iodoom3 bugtracker
...
rhyskidd@gmail.com found them (with PVS studio IIRC), reported them and posted
patches.
Some of the patches were incorrect so I rewrote them.
2012-06-02 10:12:22 +02:00
Daniel Gibson
1e087d9bf6
Fix idMatX::IsOrthonormal()
...
The original implementation was pretty broken (but not used anyway),
it is now fixed and improved a bit (got rid of one inner loop).
This (at least part of the problem) was detected by PVS-Studio,
see http://www.viva64.com/en/b/0120/ Fragment 3
2012-05-13 03:04:34 +02:00
Daniel Gibson
5b2c78b9ff
Fix wrong length used in memset() in idMegaTexture::GenerateMegaMipMaps()
...
it should be tileSize, not sizeof( tileSize ), as it was also used for
allocating that block of memory
2012-05-13 02:52:12 +02:00
Daniel Gibson
56873e1fec
Fix memleak in snd_cache.cpp (from Harry Jeffery)
...
This fix is stolen from https://bugzilla.icculus.org/show_bug.cgi?id=5345
2012-05-13 02:31:37 +02:00
Daniel Gibson
6a23b17509
Work around broken libs that call setlocale(LC_ALL, "");
...
Because that can fuck up parsing floats if your locale uses ',' as a radix.
LADSPA plugins that may be used by ALSA do this. A PITA to debug.
2012-05-13 00:04:17 +02:00
dhewg
45a73e2dcd
Add the build target "Profile" suitable for profiling
2012-01-19 00:53:16 +01:00
dhewg
a18650b27e
Remove initial R_SetColorMappings() call
...
This happens before the SDL GL window is set up, which just
results in a warning. Another call will properly set the
gamma table after the window is initialized.
Make gammaTable a stack variable. This is sufficient, since SDL
already restores the gamma values for us on exit.
2012-01-19 00:53:13 +01:00
dhewg
0e3500b919
Accept both alt keys for alt-enter
...
Reported by Ensiform.
2012-01-19 00:22:47 +01:00
dhewg
3e066baf91
Map the right alt key
...
SDLK_RALT was missing, it is independent of SDLK_MODE.
Reported by Ensiform.
2012-01-19 00:19:51 +01:00
dhewg
6d6c5c8ce7
Fix "unreachable code" warnings
2012-01-15 14:13:44 +01:00
dhewg
33bb970596
README: Move the OSX note
...
It is less confusing.
2012-01-14 22:36:11 +01:00
dhewg
08c758984f
README: Use markdown and UTF8 encoding
2012-01-14 21:39:05 +01:00
dhewg
794a01603b
README: Rename to README.md
2012-01-14 21:22:16 +01:00
dhewg
2d4c18173d
README: Use MinGW as an example for Win64 builds
...
The tree contains MSVC specific asm which won't compile with
a MSVC 64bit compiler.
2012-01-14 20:50:12 +01:00
dhewg
b23e73dea7
README: Clarify OSX OpenAL situation
2012-01-14 20:48:09 +01:00
dhewg
668802f09a
Cleanup OpenAL includes
...
We use OpenAL Soft on all platforms.
2012-01-14 20:43:50 +01:00
dhewg
c5cc860409
README: Add a CHANGES section
...
Describe what has been done on this tree.
2012-01-14 20:43:48 +01:00
dhewg
7aad5a21d3
README: Describe dhewm 3
2012-01-14 20:43:35 +01:00
dhewg
898f690fc4
This is dhewm 3
...
Rename project, now at https://github.com/dhewm
2012-01-14 20:06:05 +01:00
dhewg
d472149426
Get rid of unused defines in Licensee.h
2012-01-14 17:59:37 +01:00
dhewg
db4aca78d6
Get rid of CPU_EASYARGS
...
Never use the event callbacks with mismatching prototypes.
2012-01-14 15:19:38 +01:00
dhewg
b7ce0ef149
CMake: Use config.h for BUILD_OS and BUILD_CPU
...
This fixes, among others, FreeBSD 64bit builds where the build
system used a "amd64" suffix and runtime "x86_64".
2012-01-14 15:19:12 +01:00
dhewg
827124431e
CMake: Detect libcurl and use it when found
...
Move ID_ENABLE_CURL to config.h
2012-01-14 15:09:29 +01:00
dhewg
545d98fc08
CMake: Create config.h
...
Use config.h for configure time settings.
2012-01-14 15:09:27 +01:00
dhewg
9108c4ec9c
CMake: Use CMAKE_SOURCE_DIR
...
Instead of CMAKE_CURRENT_SOURCE_DIR.
2012-01-14 15:02:26 +01:00
dhewg
b5c66c088c
Get rid of ID_OPENAL
...
This is always required for clients.
2012-01-14 15:02:26 +01:00
dhewg
dca4721c8f
Get rid of the scons build system
...
This only works for linux and cmake works on all platforms.
Hopefully this prevents invalid reports.
2012-01-14 15:01:19 +01:00
dhewg
1a5499e6f5
Fix compilation of the dedicated server
...
Add missing OpenAL stubs.
2012-01-14 13:26:01 +01:00
dhewg
2b9e2e5193
More fixes regarding event saving and restoring
...
Fix silly issue from 3d692b58
(sizeof(E_EVENT_SIZEOF_VEC)).
Align entity values of events to the native pointer size, which
is noticeably faster on x86_64 and fixes another assert() in
debug builds.
Past savegames with entities in events are not compatible.
2012-01-13 01:45:19 +01:00
dhewg
76ecb1c863
README: Remove iodoom3 note
...
This reverts commit ee4420557d
.
2012-01-12 22:07:02 +01:00