Commit graph

1386 commits

Author SHA1 Message Date
Timothee Besset
08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset
fc33f1818c Merge branch 'master' of github.com:TTimo/GtkRadiant 2018-01-21 14:47:38 -06:00
Timothee Besset
e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Timothee "TTimo" Besset
e44968a80f
Merge pull request #580 from tkoeppe/flexi
Use standard "offsetof" facility rather than manual code involving null pointer dereferences.
2018-01-21 14:23:29 -06:00
Thomas Köppe
ec0907f7ca Use standard "offsetof" facility rather than manual code involving null pointer dereferences. 2018-01-21 01:54:24 +00:00
Timothee "TTimo" Besset
3c49dd161d
Merge pull request #576 from tkoeppe/bugfixes
Bugfixes in sciptlib.c and map.c
2018-01-20 15:35:53 -06:00
Timothee "TTimo" Besset
943107012f
Merge pull request #564 from illwieckz/gcc8
gcc8: static_cast NULL instead of reinterpret_cast
2018-01-20 15:33:17 -06:00
Timothee "TTimo" Besset
e5b3a6e942
Merge pull request #579 from Pan7/fixElif
Fix missing #elif
2018-01-20 10:04:10 -06:00
Pan
189a61a9e0 Fix missing #elif 2018-01-20 12:06:23 +01:00
Timothee "TTimo" Besset
61d14dfd10
Merge pull request #578 from Pan7/donotalias
Extra donotenterlarge surfaceparm for nonotenterlarge
2018-01-16 08:59:54 -06:00
Pan
911d5562f6 Extra donotenterlarge surfaceparm for nonotenterlarge 2018-01-16 13:12:13 +01:00
Thomas Köppe
760623150e [q3map2] Unwind script stack in case of script loading error.
Also avoid type punning read into char* variable (even though char* and void* happen to be layout-compatible).
2018-01-08 15:18:40 +00:00
Thomas Köppe
606d72adf2 [q3map2] Fix errnoneous plane access if plane was not found 2018-01-08 15:17:58 +00:00
Thomas Debesse
ec946f83d6 shaderlists 2018-01-07 21:20:52 +01:00
Thomas Debesse
32543d8a24 Unvanquished appears in readme 2018-01-07 21:18:18 +01:00
Thomas Debesse
da38f7754c [q3map2] reduce diff noise with netradiant tree 2018-01-07 21:16:53 +01:00
neumond
eee8d14261 q3map2: Add -game unvanquished 2018-01-07 21:16:53 +01:00
Thomas Debesse
ce211f0773 update unvanquished game pack repository url 2018-01-07 21:16:53 +01:00
Thomas Debesse
33be0cb1f8 config.py: remove some spaces 2018-01-07 21:16:53 +01:00
neumond
2b2d2eab06 Unvanquished gamepack 2018-01-07 21:16:53 +01:00
neumond
cfaa83f3b1 Unvanquished appears in menu 2018-01-07 21:16:53 +01:00
Thomas Debesse
c99c1abd9b [q3map2] import pk3dir/dpk/dpkdir support from netradiant
- load every pk3dir/dpkdir as VFS
- increase VFS_MAXDIR
- dpk/dpkdir is not versionned yet
2018-01-07 21:09:52 +01:00
Thomas Debesse
ba300b1751 [radiant] allow to load pk4/dpk vfs in addition to pk3 vfs
- load also pk4/pk4dir and dpk/dpkdir
- dpk/dpkdir are not versionned yet
2018-01-07 21:09:52 +01:00
Thomas Debesse
721da8cdb1 [radiant] pk3dir support
- load every pk3dir as VFS
- increase VFS_MAXDIR
2018-01-07 21:09:52 +01:00
Timothee "TTimo" Besset
94849adc93
Merge pull request #534 from illwieckz/noradiosity
Proper working with noradiosity 1 lights
2018-01-07 13:06:03 -06:00
Timothee "TTimo" Besset
bc3a288dfe
Merge pull request #537 from illwieckz/readme
add project README, fix #434
2018-01-07 13:03:16 -06:00
Timothee "TTimo" Besset
fe4fbe25a8
Merge pull request #568 from rsfbarreira/patch-1
Fix undefined behavior in FreeStackWinding
2018-01-07 13:01:27 -06:00
Thomas Debesse
88805013d4 print hidden empty shader/texture dirs on console <3 @Pan7 2018-01-07 05:31:42 +01:00
Timothee "TTimo" Besset
42c397f02b
Merge pull request #565 from illwieckz/freebsd
Enable FreeBSD build, fix #378
2018-01-06 22:01:25 -06:00
TTimo
a365863a1d Add a SourceTrail project 2018-01-06 22:00:50 -06:00
Ricardo Barreira
5e308f9056
Fix undefined behavior in FreeStackWinding
Fix subtraction of unrelated pointers and integer overflow in FreeStackWinding (both are undefined behavior).

In rare cases "i" would non-deterministically be between 0 and 2 even though the
pointers were in unrelated addresses, which caused a spurious free of one of
the three windings - eventually the real free would happen, be detected as a
double free and an exit(1) would ensue.

Example contents of w and stack->windings that triggered this in a test: 0xa9251c0 0x7f440a924f78

Checking for pointer equality makes the behavior defined and correct: http://port70.net/~nsz/c/c99/n1256.html#6.5.9
2017-10-31 13:05:32 +00:00
Thomas Debesse
b1c4fb1304 make “hide empty directories” an option 2017-09-03 20:16:53 +02:00
Thomas Debesse
e9e095b4c6 empty shader dir checking: some useful comments 2017-09-02 05:09:18 +02:00
Thomas Debesse
a9583eb1e6 also check against shader script file name when looking for non-empty shader dir
Greeting Pan
2017-09-02 04:42:39 +02:00
Thomas Debesse
8051dd88ca avoid to misread an unbracketed for loop 2017-09-02 04:38:00 +02:00
Thomas Debesse
bdecace973 add more well known preview/gloss/normal suffixes 2017-09-02 04:38:00 +02:00
Thomas Debesse
c832a55910 avoid “unused” warning because usage is in debug code only 2017-09-02 04:38:00 +02:00
Thomas Debesse
e179e2b4a4 more strict shader dir checking 2017-09-02 04:38:00 +02:00
Thomas Debesse
67647ac470 do not list empty texture dir 2017-09-02 04:38:00 +02:00
Thomas Debesse
a9e54ea54f move texture name validation outside of texture listing 2017-09-02 04:38:00 +02:00
Thomas Debesse
39ec17cfd9 move texture listing outside of texture showing 2017-09-02 04:38:00 +02:00
Thomas Debesse
41ed9c2ce5 do not list empty shader dir 2017-09-02 04:37:58 +02:00
Thomas Debesse
4c4ba27094 scons: use system compiler instead of gcc on FreeBSD 2017-08-31 00:45:30 +02:00
Thomas Debesse
8535f26206 scons: add CheckUnresolved stub for FreeBSD 2017-08-31 00:45:30 +02:00
Thomas Debesse
1e71b1fc39 scons: do not require libdl on FreeBSD since it's provided by libc 2017-08-31 00:45:30 +02:00
Thomas Debesse
38b0faf0da preproc: more unknown architecture error 2017-08-31 00:45:30 +02:00
Thomas Debesse
417032e526 bikeshedding: move some misplaced comment 2017-08-31 00:45:30 +02:00
Thomas Debesse
413564daa3 preproc: add some FreeBSD defines (path sep etc.) 2017-08-31 00:45:29 +02:00
Thomas Debesse
9d7cc6cd17 preproc: FreeBSD game names are like Linux ones 2017-08-31 00:45:29 +02:00
Thomas Debesse
9f595b664b preproc: FreeBSD also provides pthread 2017-08-31 00:45:24 +02:00