]> de.git.xonotic.org Git - xonotic/netradiant.git/log
xonotic/netradiant.git
12 years agobuild: re-enable optimizations in release builds
Ben Noordhuis [Sat, 17 Mar 2012 15:13:32 +0000 (16:13 +0100)]
build: re-enable optimizations in release builds

Commit f961a54 fixes the q3map2 crash at startup so it's safe to enable
optimizations again.

12 years agoq3map2: bump MAX_OS_PATH to 4096
Ben Noordhuis [Sun, 18 Mar 2012 01:02:48 +0000 (02:02 +0100)]
q3map2: bump MAX_OS_PATH to 4096

Fixes a "buffer overflow detected" abort when compiled with _FORTIFY_SOURCE=1.

The realpath(3) function in glibc checks if the destination buffer is large
enough to hold up to PATH_MAX characters and aborts if that is not the case.
PATH_MAX doesn't have to be defined so assume that it's equal to 4096.

We should really be using pathconf(_PC_PATH_MAX) instead of a hard-coded value
but that means we can no longer use static buffers to hold paths.

12 years agoq3map2: harden UNIX path sniffer against buffer overflows
Ben Noordhuis [Sun, 18 Mar 2012 01:00:09 +0000 (02:00 +0100)]
q3map2: harden UNIX path sniffer against buffer overflows

12 years agoq3map2: fix dangling pointer dereference
Ben Noordhuis [Sun, 18 Mar 2012 00:53:03 +0000 (01:53 +0100)]
q3map2: fix dangling pointer dereference

`last` was used but not initialized.

Also fixes a segmentation fault if PATH is not in the environment.

12 years agoq3map2: getpwent() result may not be persistent
Ben Noordhuis [Sat, 17 Mar 2012 23:26:28 +0000 (00:26 +0100)]
q3map2: getpwent() result may not be persistent

Use getpwuid_r() instead and store the path in a static buffer.

12 years agoq3map2: add safe string copy functions
Ben Noordhuis [Sat, 17 Mar 2012 23:34:31 +0000 (00:34 +0100)]
q3map2: add safe string copy functions

* Q_strncpyz()
* Q_strncat()
* Q_strcat()

Guard against buffer overruns, always zero terminate the result.

12 years agoq3map2: fix bogus empty string checks
Ben Noordhuis [Sat, 17 Mar 2012 22:53:12 +0000 (23:53 +0100)]
q3map2: fix bogus empty string checks

qdir is an array, not a pointer, so `if (qdir)` is always true.

12 years agofix warning: unused variable 'foo'
Ben Noordhuis [Sat, 17 Mar 2012 22:09:08 +0000 (23:09 +0100)]
fix warning: unused variable 'foo'

12 years agofix warning: array subscript is above array bounds
Ben Noordhuis [Sat, 17 Mar 2012 21:58:48 +0000 (22:58 +0100)]
fix warning: array subscript is above array bounds

Simplify and flatten the code while we're at it.

12 years agofix warning: format not a string literal and no format arguments
Ben Noordhuis [Sat, 17 Mar 2012 21:32:01 +0000 (22:32 +0100)]
fix warning: format not a string literal and no format arguments

12 years ago.gitignore build artifacts
Ben Noordhuis [Sat, 17 Mar 2012 15:16:12 +0000 (16:16 +0100)]
.gitignore build artifacts

12 years agouncrustify! now the code is only ugly on the *inside*
Timothee TTimo Besset [Sat, 17 Mar 2012 20:01:54 +0000 (15:01 -0500)]
uncrustify! now the code is only ugly on the *inside*

12 years agotrash a bunch of outdated and confusing things
Timothee TTimo Besset [Sat, 17 Mar 2012 19:07:19 +0000 (14:07 -0500)]
trash a bunch of outdated and confusing things

12 years agoConvert svn:ignore properties to .gitignore.
git-svn-migrate [Sat, 17 Mar 2012 03:20:47 +0000 (22:20 -0500)]
Convert svn:ignore properties to .gitignore.

12 years agoquery the online, not total, CPUs in case some were shut off xonotic-v0.6.0
Rudolf Polzer [Sat, 3 Mar 2012 16:31:03 +0000 (17:31 +0100)]
query the online, not total, CPUs in case some were shut off

12 years agoq3map2: Small cleanups
Lauri Kasanen [Sat, 3 Mar 2012 10:51:20 +0000 (12:51 +0200)]
q3map2: Small cleanups

Move one variable to the section it is used in, and remove one unnecessary
NULL check.

If si were NULL at that point, we would have segfaulted ages ago.

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
12 years agoAutomatically determine the number of threads on linux
Lauri Kasanen [Sat, 3 Mar 2012 10:44:50 +0000 (12:44 +0200)]
Automatically determine the number of threads on linux

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
12 years agoAdd gitignore
Lauri Kasanen [Sat, 3 Mar 2012 09:08:53 +0000 (11:08 +0200)]
Add gitignore

Signed-off-by: Lauri Kasanen <curaga@operamail.com>
12 years agofix how glib is included
Rudolf Polzer [Thu, 1 Mar 2012 13:43:00 +0000 (14:43 +0100)]
fix how glib is included

12 years agoMerge remote-tracking branch 'origin/ailmanki/et-engineaftercompile'
Rudolf Polzer [Thu, 1 Mar 2012 11:15:33 +0000 (12:15 +0100)]
Merge remote-tracking branch 'origin/ailmanki/et-engineaftercompile'

12 years agoalso include libjpeg8 here
Rudolf Polzer [Thu, 1 Mar 2012 10:25:48 +0000 (11:25 +0100)]
also include libjpeg8 here

12 years agono longer use an included libjpeg copy. Use the system one.
Rudolf Polzer [Thu, 1 Mar 2012 09:35:32 +0000 (10:35 +0100)]
no longer use an included libjpeg copy. Use the system one.

12 years agoremove internal libjpeg6 copy (patch by monad)
Rudolf Polzer [Thu, 1 Mar 2012 09:24:29 +0000 (10:24 +0100)]
remove internal libjpeg6 copy (patch by monad)

12 years agoFix for the fix
ailmanki [Sun, 26 Feb 2012 10:24:30 +0000 (11:24 +0100)]
Fix for the fix

12 years agoFixed map not starting after compile in Enemy-Territory.
ailmanki [Sun, 26 Feb 2012 10:11:19 +0000 (11:11 +0100)]
Fixed map not starting after compile in Enemy-Territory.

12 years agoQuakePack seems to be GPL now
Rudolf Polzer [Tue, 21 Feb 2012 21:59:01 +0000 (22:59 +0100)]
QuakePack seems to be GPL now

12 years agoMerge remote-tracking branch 'origin/divVerent/leak-fix'
Rudolf Polzer [Sun, 19 Feb 2012 17:40:59 +0000 (18:40 +0100)]
Merge remote-tracking branch 'origin/divVerent/leak-fix'

12 years agofix another import bsp bug
Rudolf Polzer [Sun, 19 Feb 2012 17:39:03 +0000 (18:39 +0100)]
fix another import bsp bug

12 years agofix import decompiling
Rudolf Polzer [Sun, 19 Feb 2012 17:27:45 +0000 (18:27 +0100)]
fix import decompiling

12 years agoSwitching order of picoModuleLWO and picoModuleOBJ as a quick
rambetter [Tue, 14 Feb 2012 18:31:09 +0000 (18:31 +0000)]
Switching order of picoModuleLWO and picoModuleOBJ as a quick
and dirty workaround to problems in libs/picomodel/pm_obj.c which
passes files that aren't Wavefront ASCII.

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@491 8a3a26a2-13c4-0310-b231-cf6edde360e5

12 years agoalso select the best entity when a leak was found
Rudolf Polzer [Tue, 14 Feb 2012 12:24:05 +0000 (13:24 +0100)]
also select the best entity when a leak was found

12 years ago.lin files: find optimal path from leak entity
Rudolf Polzer [Tue, 14 Feb 2012 12:19:44 +0000 (13:19 +0100)]
.lin files: find optimal path from leak entity

12 years agoanother experimental change: better handle leaky maps
Rudolf Polzer [Tue, 14 Feb 2012 10:35:59 +0000 (11:35 +0100)]
another experimental change: better handle leaky maps

12 years agofix drawindexes crash when loading BSP files
Rudolf Polzer [Mon, 13 Feb 2012 20:09:11 +0000 (21:09 +0100)]
fix drawindexes crash when loading BSP files

12 years agoMerge branch 'divVerent/MAX_MAP_DRAW_INDEXES'
Rudolf Polzer [Mon, 13 Feb 2012 14:51:10 +0000 (15:51 +0100)]
Merge branch 'divVerent/MAX_MAP_DRAW_INDEXES'

12 years agofix crash in -bsp
Rudolf Polzer [Mon, 13 Feb 2012 10:22:07 +0000 (11:22 +0100)]
fix crash in -bsp

12 years agounlimit MAX_MAP_DRAW_INDEXES
Rudolf Polzer [Sun, 12 Feb 2012 18:00:55 +0000 (19:00 +0100)]
unlimit MAX_MAP_DRAW_INDEXES

12 years agobobtoolz fixes to patch merging
ailmanki [Sat, 11 Feb 2012 15:45:17 +0000 (16:45 +0100)]
bobtoolz fixes to patch merging

12 years agoadd option -nofastpoint; make old buggy behaviour default as it is typically a lot...
Rudolf Polzer [Thu, 9 Feb 2012 10:28:49 +0000 (11:28 +0100)]
add option -nofastpoint; make old buggy behaviour default as it is typically a lot faster. To not use fast point lights, pass -nofastpoint but not -fast.

12 years agoslow down non-fast operation but make it more accurate by not using falloff tolerance...
Rudolf Polzer [Thu, 9 Feb 2012 09:51:09 +0000 (10:51 +0100)]
slow down non-fast operation but make it more accurate by not using falloff tolerance at all when -fast is not used

12 years agoFIXME comment because falloffTolerance is checked in non-fast too for point lights...
Rudolf Polzer [Thu, 9 Feb 2012 09:41:17 +0000 (10:41 +0100)]
FIXME comment because falloffTolerance is checked in non-fast too for point lights, should we really do that? Maybe add a -slow then...

12 years agofix falloff tolerance for sRGB
Rudolf Polzer [Thu, 9 Feb 2012 09:41:09 +0000 (10:41 +0100)]
fix falloff tolerance for sRGB

12 years agoswap values 0 and 1 for -exposure (now -exposure 0 does nothing, -exposure 1 did...
Rudolf Polzer [Thu, 9 Feb 2012 09:40:48 +0000 (10:40 +0100)]
swap values 0 and 1 for -exposure (now -exposure 0 does nothing, -exposure 1 did what 0 did before)

12 years agoleave out 4 files
Rudolf Polzer [Mon, 23 Jan 2012 19:49:53 +0000 (20:49 +0100)]
leave out 4 files

12 years agoOS X: support homebrew by MACLIBDIR=/usr/local/lib
Rudolf Polzer [Mon, 23 Jan 2012 19:29:05 +0000 (20:29 +0100)]
OS X: support homebrew by MACLIBDIR=/usr/local/lib

12 years agosimplify code
Rudolf Polzer [Mon, 23 Jan 2012 19:19:45 +0000 (20:19 +0100)]
simplify code

12 years agofix type cast
Rudolf Polzer [Mon, 23 Jan 2012 17:18:01 +0000 (18:18 +0100)]
fix type cast

12 years agofix deprecation with libpng 1.4
Rudolf Polzer [Mon, 23 Jan 2012 16:25:22 +0000 (17:25 +0100)]
fix deprecation with libpng 1.4

12 years agoNOW I do it right: #woxblox#
Rudolf Polzer [Sat, 14 Jan 2012 11:37:33 +0000 (12:37 +0100)]
NOW I do it right: #woxblox#

See http://nl.git.xonotic.org/?p=xonotic/netradiant.git;a=commit;h=30fdfe8ce9e5ac059226ef85e22f8ff79217549e

12 years agoSee http://nl.git.xonotic.org/?p=xonotic/netradiant.git;a=commit;h=30fdfe8ce9e5ac0592...
Rudolf Polzer [Sat, 14 Jan 2012 11:36:18 +0000 (12:36 +0100)]
See http://nl.git.xonotic.org/?p=xonotic/netradiant.git;a=commit;h=30fdfe8ce9e5ac059226ef85e22f8ff79217549e

12 years agoA new NetRadiant build is available on
Rudolf Polzer [Sat, 14 Jan 2012 11:32:15 +0000 (12:32 +0100)]
A new NetRadiant build is available on
http://rid.icculus.org/netradiant/files/netradiant-1.5.0-20120114-win32-7z.exe

The builds by default are in sRGB; the build menu provides "nosRGB" options to
do old-style light compiles.

To continue to use non-sRGB on the build service, add -nosRGB to your
.map.options file.

In case you don't see the new build options, please hunt down a file called
"build_menu.xml" in your NetRadiant settings dir (Unix:
~/.netradiant/1.5.0/xonotic.game/, Windows: Application
Data\netradiant\1.5.0\xonotic.game) and delete it before starting Radiant
again).

12 years agoMerge branch 'master' of git://de.git.xonotic.org/xonotic/netradiant
Rudolf Polzer [Fri, 13 Jan 2012 23:32:48 +0000 (00:32 +0100)]
Merge branch 'master' of git://de.git.xonotic.org/xonotic/netradiant

12 years agofix dependency check causing recompile of all .c files
Rudolf Polzer [Fri, 13 Jan 2012 23:25:21 +0000 (00:25 +0100)]
fix dependency check causing recompile of all .c files

12 years agoadd two missing dlls
Rudolf Polzer [Fri, 13 Jan 2012 23:10:38 +0000 (00:10 +0100)]
add two missing dlls

12 years agoanother compile fix for win32 on arch linux
Rudolf Polzer [Fri, 13 Jan 2012 22:42:48 +0000 (23:42 +0100)]
another compile fix for win32 on arch linux

12 years agobetter fit mingw on Arch Linux
Rudolf Polzer [Fri, 13 Jan 2012 22:28:18 +0000 (23:28 +0100)]
better fit mingw on Arch Linux

12 years agosupport for separators in build menu
Rudolf Polzer [Fri, 13 Jan 2012 20:44:52 +0000 (21:44 +0100)]
support for separators in build menu

12 years agoMoved windows build paks from Zerowing to icculus.org.
rambetter [Wed, 4 Jan 2012 00:47:49 +0000 (00:47 +0000)]
Moved windows build paks from Zerowing to icculus.org.

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@490 8a3a26a2-13c4-0310-b231-cf6edde360e5

12 years agoUpdating some links in the Windows compile guide.
rambetter [Mon, 2 Jan 2012 04:48:47 +0000 (04:48 +0000)]
Updating some links in the Windows compile guide.

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@489 8a3a26a2-13c4-0310-b231-cf6edde360e5

12 years agoUpdating Windows compile guide with new SVN repo location.
rambetter [Mon, 2 Jan 2012 02:10:52 +0000 (02:10 +0000)]
Updating Windows compile guide with new SVN repo location.

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@488 8a3a26a2-13c4-0310-b231-cf6edde360e5

12 years agoChanging the SVN respository of game packs to correct one after
rambetter [Sun, 1 Jan 2012 21:59:26 +0000 (21:59 +0000)]
Changing the SVN respository of game packs to correct one after
the SVN repo switch.

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@487 8a3a26a2-13c4-0310-b231-cf6edde360e5

12 years agoXonotic: make sRGB compiles default
Rudolf Polzer [Sat, 31 Dec 2011 13:37:43 +0000 (14:37 +0100)]
Xonotic: make sRGB compiles default

12 years agodon't care for singular/plural in -shaderasbitmap vs -shadersasbitmap etc.
Rudolf Polzer [Fri, 30 Dec 2011 19:01:02 +0000 (20:01 +0100)]
don't care for singular/plural in -shaderasbitmap vs -shadersasbitmap etc.

12 years ago-onlyents: keep gridsize as stored in the bsp
Rudolf Polzer [Tue, 27 Dec 2011 18:45:22 +0000 (19:45 +0100)]
-onlyents: keep gridsize as stored in the bsp

12 years agoadd shorthand option -nosRGB to turn off all sRGB modes
Rudolf Polzer [Sun, 25 Dec 2011 18:45:09 +0000 (19:45 +0100)]
add shorthand option -nosRGB to turn off all sRGB modes

12 years agoMerge branch 'master' of /var/cache/git/xonotic/netradiant
Rudolf Polzer [Wed, 21 Dec 2011 15:36:07 +0000 (16:36 +0100)]
Merge branch 'master' of /var/cache/git/xonotic/netradiant

12 years ago256 surfaceparms
Rudolf Polzer [Wed, 21 Dec 2011 15:35:44 +0000 (16:35 +0100)]
256 surfaceparms

12 years agoalways use color normalization, vector normalization on colors is worng
Rudolf Polzer [Sun, 18 Dec 2011 21:36:53 +0000 (22:36 +0100)]
always use color normalization, vector normalization on colors is worng

12 years agoalso support -sRGBcolor for floodlight
Rudolf Polzer [Wed, 14 Dec 2011 08:39:44 +0000 (09:39 +0100)]
also support -sRGBcolor for floodlight

12 years agosRGB convert all shader specified colors
Rudolf Polzer [Wed, 14 Dec 2011 08:36:30 +0000 (09:36 +0100)]
sRGB convert all shader specified colors

12 years agosupport -sRGBcolor for all _color keys
Rudolf Polzer [Wed, 14 Dec 2011 08:31:18 +0000 (09:31 +0100)]
support -sRGBcolor for all _color keys

12 years agosupport -sRGBcolor for flares
Rudolf Polzer [Wed, 14 Dec 2011 08:28:03 +0000 (09:28 +0100)]
support -sRGBcolor for flares

12 years agooption: -sRGBcolor (unused yet)
Rudolf Polzer [Wed, 14 Dec 2011 08:27:49 +0000 (09:27 +0100)]
option: -sRGBcolor (unused yet)

12 years agomark two shader checks nullable
Rudolf Polzer [Fri, 9 Dec 2011 16:24:33 +0000 (17:24 +0100)]
mark two shader checks nullable

12 years agono, we do NOT want to ignore caulk
Rudolf Polzer [Fri, 9 Dec 2011 16:17:31 +0000 (17:17 +0100)]
no, we do NOT want to ignore caulk

12 years agoproperly ignore caulk
Rudolf Polzer [Fri, 9 Dec 2011 16:15:51 +0000 (17:15 +0100)]
properly ignore caulk

12 years agoPROPERLY ignore sky brushes for minimap
Rudolf Polzer [Fri, 9 Dec 2011 15:36:07 +0000 (16:36 +0100)]
PROPERLY ignore sky brushes for minimap

12 years ago-autolevel for minimap
Rudolf Polzer [Fri, 9 Dec 2011 15:18:17 +0000 (16:18 +0100)]
-autolevel for minimap

12 years agofix lightstyle compare (SIGBUS on SPARC)
Rudolf Polzer [Thu, 8 Dec 2011 13:11:06 +0000 (14:11 +0100)]
fix lightstyle compare (SIGBUS on SPARC)

12 years agoAllocWinding: fix handling of compiler enforced alignment of double
Rudolf Polzer [Thu, 8 Dec 2011 11:20:56 +0000 (12:20 +0100)]
AllocWinding: fix handling of compiler enforced alignment of double

12 years agomake dependencies check work even with -j make invocation
Rudolf Polzer [Sun, 4 Dec 2011 17:19:34 +0000 (18:19 +0100)]
make dependencies check work even with -j make invocation

12 years agoproperly support -keeplights option. Current implementation never worked.
Rudolf Polzer [Thu, 1 Dec 2011 15:47:35 +0000 (16:47 +0100)]
properly support -keeplights option. Current implementation never worked.

12 years ago_farplanedist now ignores C_SKY leafs
Rudolf Polzer [Wed, 23 Nov 2011 11:01:02 +0000 (12:01 +0100)]
_farplanedist now ignores C_SKY leafs

12 years agoaudit all uses of ClipWindingEpsilon and choose the strict variant or not, and explai...
Rudolf Polzer [Wed, 23 Nov 2011 08:44:05 +0000 (09:44 +0100)]
audit all uses of ClipWindingEpsilon and choose the strict variant or not, and explain why

12 years agotry to fix the "-np surfaces disappear" bug
Rudolf Polzer [Tue, 22 Nov 2011 11:10:26 +0000 (12:10 +0100)]
try to fix the "-np surfaces disappear" bug

12 years agofix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improv...
Rudolf Polzer [Sun, 20 Nov 2011 20:37:55 +0000 (21:37 +0100)]
fix an obvious q3map2 bug that causes BSP leafs to be too big sometimes. Maybe improves fps. No other change.

12 years agofix a typo in auto map type detection
Rudolf Polzer [Sat, 12 Nov 2011 11:31:33 +0000 (12:31 +0100)]
fix a typo in auto map type detection

12 years agoexplain BP mode
Rudolf Polzer [Sat, 12 Nov 2011 11:25:30 +0000 (12:25 +0100)]
explain BP mode

12 years agonew gamepack URLs
Rudolf Polzer [Thu, 10 Nov 2011 10:08:29 +0000 (11:08 +0100)]
new gamepack URLs

12 years agoalso new option: -sRGBtex, and renamed -sRGB to -sRGBlight
Rudolf Polzer [Sat, 29 Oct 2011 14:33:46 +0000 (16:33 +0200)]
also new option: -sRGBtex, and renamed -sRGB to -sRGBlight

12 years agofix spotScale implementation
Rudolf Polzer [Sat, 29 Oct 2011 14:10:09 +0000 (16:10 +0200)]
fix spotScale implementation

12 years agoadd separate spotlight scale -spotscale
Rudolf Polzer [Sat, 29 Oct 2011 11:38:19 +0000 (13:38 +0200)]
add separate spotlight scale -spotscale

12 years agoadd also a -nosRGB option to turn sRGB off
Rudolf Polzer [Sat, 22 Oct 2011 13:38:56 +0000 (15:38 +0200)]
add also a -nosRGB option to turn sRGB off

12 years agoexperimental q3map2 command line option: -sRGB (store lightmaps in sRGB)
Rudolf Polzer [Fri, 21 Oct 2011 15:19:52 +0000 (17:19 +0200)]
experimental q3map2 command line option: -sRGB (store lightmaps in sRGB)

12 years agoalphashadow/lightfilter: bound the texcoords after converting to integer to guard...
Rudolf Polzer [Tue, 18 Oct 2011 15:07:24 +0000 (17:07 +0200)]
alphashadow/lightfilter: bound the texcoords after converting to integer to guard against float accuracy issues

12 years agoA tiny patch for the brushexport2 obj exporter that stops it from truncating filename...
Thorn [Tue, 18 Oct 2011 13:01:18 +0000 (15:01 +0200)]
A tiny patch for the brushexport2 obj exporter that stops it from truncating filenames if you don't specifically append ".obj" in the file browser window.

12 years agoadd a missing memset
Rudolf Polzer [Tue, 18 Oct 2011 09:10:17 +0000 (11:10 +0200)]
add a missing memset

12 years agototally unlimit entities
Rudolf Polzer [Mon, 17 Oct 2011 04:53:42 +0000 (06:53 +0200)]
totally unlimit entities

12 years agoMerge branch 'master' of git://de.git.xonotic.org/xonotic/netradiant
Rudolf Polzer [Mon, 17 Oct 2011 04:47:47 +0000 (06:47 +0200)]
Merge branch 'master' of git://de.git.xonotic.org/xonotic/netradiant

12 years agoallow more entities
Rudolf Polzer [Mon, 17 Oct 2011 04:47:29 +0000 (06:47 +0200)]
allow more entities