Commit graph

123 commits

Author SHA1 Message Date
Jonathan Gray
66807cbdb9 workaround glibc ld.so bug #12561
from Jochen Leopold:

Fixed dclose problems (stuck in level 4)
* UNIQUE symbols in jk2gamex86.so don't allow to unload the library on map changes!
** so all global variables are not reseted -> this causes many bugs (stuck on start of level 4 for example)
* removed one "inline" attribute which fixes this bug
** there is just a GLIBCXX unique symbol left: readelf -Ws ./jk2gamex86.so | grep UNIQUE
2013-05-12 12:15:11 +10:00
Zachary J. Slater
e152517a2a Merge pull request #5 from jonathangray/warn
Clean up some warnings and remove the need for -fpermissive
2013-05-02 12:03:55 -07:00
Jonathan Gray
6bc56bd6b6 set some possibly uninitialised vars to zero 2013-05-02 17:45:27 +10:00
Jonathan Gray
89e2c9f708 disable some noisy and mostly harmless warnings 2013-05-02 17:22:44 +10:00
Jonathan Gray
2647f1e8d1 const fixes 2013-05-02 17:21:31 +10:00
Jonathan Gray
70183a8566 avoid enum to int conversions 2013-05-02 17:19:44 +10:00
Jonathan Gray
7b5d5bc663 remove the use of 'typedef enum' without an indentifier 2013-05-02 17:19:10 +10:00
Jonathan Gray
6fe03e8c7f remove surplus tokens after preprocessor directives 2013-05-02 17:08:48 +10:00
Jonathan Gray
fc50336a62 set some possibly uninitialised vars to zero 2013-05-02 15:41:53 +10:00
Jonathan Gray
fd5f5465c7 don't build smartheap, it isn't needed 2013-05-02 15:18:05 +10:00
Jonathan Gray
a9fd9c4bf9 disable some noisy and mostly harmless warnings 2013-05-02 15:16:57 +10:00
Jonathan Gray
ac4f685edb const fixes 2013-05-02 15:13:41 +10:00
Jonathan Gray
f248a82b31 avoid enum to int conversions 2013-05-02 15:11:50 +10:00
Jonathan Gray
a51d68acb9 remove the use of 'typedef enum' without an indentifier 2013-05-02 15:09:52 +10:00
Jonathan Gray
358beecb7d remove surplus tokens after preprocessor directives 2013-05-02 15:07:15 +10:00
Zachary J. Slater
bc0383bd86 Merge pull request #4 from jonathangray/sdl
add SDL glimp/input from ioquake3
2013-04-29 22:21:41 -07:00
Jonathan Gray
ae0d73a96e windowed mouse is fixed with sdl 2013-04-30 14:59:59 +10:00
Jonathan Gray
854e82ae96 add sdl glimp/input from ioquake3 for MP 2013-04-30 14:59:53 +10:00
Jonathan Gray
c918959862 add sdl glimp/input from ioquake3 for SP 2013-04-30 14:58:18 +10:00
Zachary J. Slater
d2d11a239b Merge pull request #3 from jonathangray/mp_port
adapt multiplayer code to gcc/unix
2013-04-28 12:03:01 -07:00
Jonathan Gray
8525b4178f update the readme for multiplayer 2013-04-28 21:55:12 +10:00
Jonathan Gray
0b512e60b6 fix some accesses beyond the end of arrays spotted via clang 2013-04-28 21:55:11 +10:00
Jonathan Gray
9eebe9bece callMask needs to be externally visible 2013-04-28 21:55:11 +10:00
Jonathan Gray
9702ea293f add a CPUSTRING for amd64 linux 2013-04-28 21:55:11 +10:00
Jonathan Gray
b1e04dbac4 avoid overflowing buffer with GL_EXTENSIONS, from ioquake3 2013-04-28 21:55:11 +10:00
Jonathan Gray
1547dd2d8b use libGL.so.1 on linux 2013-04-28 21:55:11 +10:00
Jonathan Gray
aae235e759 use memmove not strcpy when src and test overlap, from ioquake3 2013-04-28 21:55:10 +10:00
Jonathan Gray
3c1f83ac48 directly use time_t in botlib 2013-04-28 21:55:10 +10:00
Jonathan Gray
ce6dec1b50 add a cmake file 2013-04-28 21:55:10 +10:00
Jonathan Gray
33b0592a56 stricmp -> Q_stricmp 2013-04-28 21:55:10 +10:00
Jonathan Gray
64d851b2d4 Fixed error in .menu file parsing on Unix
from Alexandre Blin
2013-04-28 17:55:11 +10:00
Jonathan Gray
aca52cceb9 define min()/max() so there won't be unresolved symbols 2013-04-28 17:55:10 +10:00
Jonathan Gray
621ca44d2c make some ifdefs more specific to let this compile on more platforms 2013-04-28 17:55:10 +10:00
Jonathan Gray
b6b25edc07 make inflate_mask static to avoid colliding with zlib 2013-04-28 17:55:10 +10:00
Jonathan Gray
cf987264f9 adapt the q3a unix backend to c++ and JO 2013-04-28 17:55:04 +10:00
Jonathan Gray
e926318ae5 allow null_snddma to be used with snd_dma 2013-04-28 16:24:33 +10:00
Jonathan Gray
5cfcb7c3ed rename some c files that will be compiled as c++ 2013-04-28 16:24:33 +10:00
Jonathan Gray
8202db3fe1 provide a gcc style alternative to the inline asm in tr_shade 2013-04-28 16:24:32 +10:00
Jonathan Gray
c294d5e494 match JA and typedef LPCSTR q_shared.h 2013-04-28 16:24:32 +10:00
Jonathan Gray
81cc9190a4 match the rest of the code and have OutputDebugString under _DEBUG 2013-04-28 16:24:32 +10:00
Jonathan Gray
ceb09f0e9b place win32 code under #ifdef _WIN32 not #ifndef __linux__ 2013-04-28 16:24:32 +10:00
Jonathan Gray
4b44474789 change iterator erasing so we don't need to overload the = operator 2013-04-28 16:24:31 +10:00
Jonathan Gray
bdaaf508db strcmpi -> Q_strcmpi 2013-04-28 16:24:31 +10:00
Jonathan Gray
19037862ec rename some files to restore the correct case 2013-04-28 16:24:31 +10:00
Jonathan Gray
6d2a2a5c1e add a gcc style alignment alternative to msvc code 2013-04-28 16:24:31 +10:00
Jonathan Gray
92d13d1c98 rename _X to avoid a collision with ctype.h 2013-04-28 16:24:30 +10:00
Jonathan Gray
71dcd3be3f powf -> Q_powf 2013-04-28 16:24:30 +10:00
Jonathan Gray
a962a72805 leave the masm assembly to msvc 2013-04-28 16:24:30 +10:00
Jonathan Gray
89023d5751 strnicmp -> Q_strnicmp 2013-04-28 16:24:30 +10:00
Jonathan Gray
53f109836e make the openal code compile without eax and enable it by default 2013-04-28 16:24:30 +10:00