divverent
23807ef4b3
some stuff by 27:
...
- better BSP tree splitting (experimental, option -altsplit)
- also compare shaders when sorting surfaces (should give slightly more fps)
- misc_model spawnflag 32: set vertex alpha from vertex color (for terrain blending)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@240 61c419a2-8eb2-4b30-bcec-8cead039b335
2018-02-06 04:27:20 +01:00
Thomas Debesse
01d635a135
tools: reduce diff noise
2018-01-27 22:54:14 +01:00
Rudolf Polzer
4d3c983a16
fix a slight memory leak
2018-01-27 22:53:18 +01:00
rpolzer
58f0f9e557
q3map2/picomodel: remove some warnings
...
imported from netradiant, initial commit message:
> q3map2 is now waring free
2018-01-27 22:53:18 +01:00
Rudolf Polzer
5a40208a05
q3map2: fix some more warnings
...
imported from netradiant, initial commit message:
> fix some more warnings
2018-01-27 22:53:18 +01:00
Thomas Debesse
ff416cdfb9
q3map2: drop quakelive encrypted pk3 vfs
2018-01-27 02:26:30 +01:00
Thomas Köppe
d3d00345c5
[q3map2/{vis,visflow}.c] Reinstate offsetof-based size computation.
...
The logic isn't entirely legitimate, since fixedWinding_t is a
fixed-size type that is *sometimes* treated as a variable-sized type,
but it would require deeper refactoring to make this strictly
conforming. As it is, we just keep the offset computation as a
reasonable way to calculate the allocation size.
Fixes #583 .
2018-01-22 16:03:21 +00:00
Timothee Besset
67fa177673
cleanup more offsetof usage
2018-01-22 08:43:48 -06:00
Thomas Köppe
f061ce9990
Change winding_t, winding_accu_t and brush_t to use flexible array members rather than fixed-sized arrays.
...
The arrays were always meant to be variably sized, and objects are only ever allocated dynamically. Object size computations are simplified with this change.
Flexible arrays were introduced in C99, so this change means that we will require a C99-conforming compiler henceforth.
2018-01-22 02:23:23 +00:00
Timothee "TTimo" Besset
c0a5da84f0
Merge pull request #535 from illwieckz/unvanquished
...
initial unvanquished support
2018-01-21 15:09:53 -06:00
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
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
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
606d72adf2
[q3map2] Fix errnoneous plane access if plane was not found
2018-01-08 15:17:58 +00: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
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
fe4fbe25a8
Merge pull request #568 from rsfbarreira/patch-1
...
Fix undefined behavior in FreeStackWinding
2018-01-07 13:01:27 -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
a3773852a4
preproc: add a FreeBSD condition everytime there is Linux or MacOS
2017-08-30 14:20:01 +00:00
Timothee Besset
3a6c9d30ed
fix compile warning
2017-08-20 15:46:40 -05:00
neumond
89c8c7355d
Proper working with noradiosity 1 lights
2017-08-06 02:31:22 +02:00
Timothee "TTimo" Besset
578fd09625
Merge pull request #526 from Pan7/fixAddWarn
...
Fix warning variable add is used uninitialized
2017-07-11 10:35:16 +02:00
Pan7
714cc90ce7
Fix warning variable add is used uninitialized
2017-07-10 15:30:04 +02:00
Pan7
a8925cbedb
Fix xml passing to parameter warnings
2017-07-10 01:04:28 +02:00
Pan7
cc8cbd8a72
Fix uninitialized use of ext warning
2017-04-27 18:12:09 +02:00
Matthias Krüger
1498ce667d
q3map2: don't store lightmap if the last bounce computation ran empty.
2017-03-13 10:58:35 +01:00
TTimo
a26c818a1e
remove the old .vcproj
2017-01-01 09:08:37 -06:00
Rudolf Polzer
1342e8ae5f
fix two obvious typos
2016-10-14 02:10:02 +02:00
TTimo
8557f1820f
more cleanups
2016-08-20 17:50:23 -06:00
TTimo
de8105beb4
readability
2016-08-20 16:06:09 -06:00
Timothee "TTimo" Besset
28e9b8ec59
Merge pull request #364 from tkoeppe/memsize
...
[tools/quake3/q3map2] Fix memset size bugs
2016-08-20 16:03:57 -06:00
Timothee "TTimo" Besset
cee35a43d7
Merge pull request #367 from tkoeppe/nan
...
[tools/quake3/q3map2/light{,maps}_ydnar.c] Fix float-to-int conversion
2016-08-20 15:56:26 -06:00
Thomas Köppe
7ea2c399ad
[tools/quake3/q3map2] Fix memset size bugs
2016-08-16 23:41:29 +01:00
Thomas Köppe
87002dc31a
[quake3/q3map2/brush.c] Fix misnamed variable
2016-08-16 22:50:14 +01:00
Thomas Köppe
f463907e46
[tools/quake3/q3map2/light{,maps}_ydnar.c] Fix float-to-int conversion by preventing NaN values
2016-08-14 12:16:13 +01:00
Thomas Köppe
d18d90278e
[quake3/q3map2/brush.c] Fix arithmetic bug
2016-08-14 01:14:17 +01:00
Timothee "TTimo" Besset
c918a29cd0
Merge pull request #352 from Pan7/Sys_FPrintf
...
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-06-11 13:01:13 -05:00
Pan7
5105fc5db8
Using Sys_FPrintf with SYS_WRN and SYS_ERR
2016-05-16 21:20:20 +02:00
Timothee Besset
cc68a76900
phrasing..
2016-04-24 15:05:09 -05:00
Timothee Besset
a88ef20680
fix short alloc and heap corruption for winding_accu_t and brush_t - brought about by https://github.com/TTimo/bspc/pull/4
2016-04-24 15:02:50 -05:00
Timothee Besset
b36b3ba4b6
Visual Studio 2015 on debug configs too
2016-04-24 14:52:52 -05:00
Thomas Debesse
d58490f20b
split fixaas stuff from q3map2
2016-02-13 04:54:26 +01:00
Thomas Debesse
cd07f71691
split bsp analyze/info/scale stuff from q3map2
2016-02-13 04:54:26 +01:00
Thomas Debesse
cd5ff8d96c
split bsp conversion stuff from q3map2
2016-02-12 20:02:35 +01:00
Timothee "TTimo" Besset
8428b75fcb
Merge pull request #273 from QBall147/master
...
Increase MAX_MAP_VISIBILITY as certain QuakeLive maps are starting to hi...
2016-01-10 11:31:47 -06:00