Merge branch 'master' into divVerent/crypto2
authorRudolf Polzer <divVerent@alientrap.org>
Thu, 2 Sep 2010 10:30:19 +0000 (12:30 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Thu, 2 Sep 2010 10:30:19 +0000 (12:30 +0200)
Conflicts:
all

14 files changed:
all
misc/logos/icons_ico/xonotic.ico [new file with mode: 0644]
misc/logos/icons_ico/xonotic_128.ico [deleted file]
misc/logos/icons_ico/xonotic_16.ico [deleted file]
misc/logos/icons_ico/xonotic_22.ico [deleted file]
misc/logos/icons_ico/xonotic_24.ico [deleted file]
misc/logos/icons_ico/xonotic_256.ico [deleted file]
misc/logos/icons_ico/xonotic_32.ico [deleted file]
misc/logos/icons_ico/xonotic_48.ico [deleted file]
misc/logos/icons_ico/xonotic_64.ico [deleted file]
misc/tools/fft-normalmap-to-heightmap.c
misc/tools/xonotic-map-compiler
misc/tools/xonotic-map-compiler-autobuild
misc/tools/xonotic.brand

diff --git a/all b/all
index f22a8b7..fb15fb0 100755 (executable)
--- a/all
+++ b/all
@@ -550,18 +550,11 @@ case "$cmd" in
                                cleanqc=true
                                shift
                                ;;
-                       -n)
-                               cleand0=false
-                               cleandp=false
-                               cleanqcc=false
-                               cleanqc=false
-                               shift
-                               ;;
                        *)
                                cleand0=false
                                cleandp=false
                                cleanqcc=false
-                               cleanqc=true # version info
+                               cleanqc=false
                                ;;
                esac
                if [ $# -gt 0 ] && [ x"$1" = x"" ]; then
@@ -1052,7 +1045,7 @@ case "$cmd" in
                verbose "$SELF" release-compile osx \
                        'STRIP=: CC="gcc -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.4 -I$HOME/dp.osx/include -L$HOME/dp.osx/lib -fno-reorder-blocks"' \
                        '' '' \
-                       'cl-release' 'darkplaces-glx:Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-agl-bin'
+                       'cl-release' 'darkplaces-agl:Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-agl-bin'
                ;;
        release-engine-osx)
                verbose "$SELF" release-engine-osx-sv-sdl
diff --git a/misc/logos/icons_ico/xonotic.ico b/misc/logos/icons_ico/xonotic.ico
new file mode 100644 (file)
index 0000000..c6f1714
Binary files /dev/null and b/misc/logos/icons_ico/xonotic.ico differ
diff --git a/misc/logos/icons_ico/xonotic_128.ico b/misc/logos/icons_ico/xonotic_128.ico
deleted file mode 100644 (file)
index c588903..0000000
Binary files a/misc/logos/icons_ico/xonotic_128.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_16.ico b/misc/logos/icons_ico/xonotic_16.ico
deleted file mode 100644 (file)
index e6047f9..0000000
Binary files a/misc/logos/icons_ico/xonotic_16.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_22.ico b/misc/logos/icons_ico/xonotic_22.ico
deleted file mode 100644 (file)
index 0b8208e..0000000
Binary files a/misc/logos/icons_ico/xonotic_22.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_24.ico b/misc/logos/icons_ico/xonotic_24.ico
deleted file mode 100644 (file)
index 6dc4557..0000000
Binary files a/misc/logos/icons_ico/xonotic_24.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_256.ico b/misc/logos/icons_ico/xonotic_256.ico
deleted file mode 100644 (file)
index 8ee2236..0000000
Binary files a/misc/logos/icons_ico/xonotic_256.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_32.ico b/misc/logos/icons_ico/xonotic_32.ico
deleted file mode 100644 (file)
index b470163..0000000
Binary files a/misc/logos/icons_ico/xonotic_32.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_48.ico b/misc/logos/icons_ico/xonotic_48.ico
deleted file mode 100644 (file)
index 7cf932a..0000000
Binary files a/misc/logos/icons_ico/xonotic_48.ico and /dev/null differ
diff --git a/misc/logos/icons_ico/xonotic_64.ico b/misc/logos/icons_ico/xonotic_64.ico
deleted file mode 100644 (file)
index a1d99e8..0000000
Binary files a/misc/logos/icons_ico/xonotic_64.ico and /dev/null differ
index aa4ac7f..8d95d5c 100644 (file)
@@ -270,6 +270,8 @@ void hmap_to_nmap(unsigned char *map, int w, int h, int src_chan, double scale)
                imgspace1[(w*y+x)][0] = (v - 128.0) / 127.0;
                imgspace1[(w*y+x)][1] = 0;
 #endif
+               if(v < 1)
+                       v = 1; /* do not write alpha zero */
                map[(w*y+x)*4+3] = floor(v + 0.5);
        }
 
@@ -354,11 +356,11 @@ void hmap_to_nmap_local(unsigned char *map, int w, int h, int src_chan, double s
        int i, j;
        double *img_reduced = malloc(w*h * sizeof(double));
        static const double filter[3][3] = { /* filter to derive one component */
-               { -1, 0, 1 },
-               { -2, 0, 2 },
-               { -1, 0, 1 }
+               {  -3, 0,  3 },
+               { -10, 0, 10 },
+               {  -3, 0,  3 }
        };
-       static const double filter_mult = 0.125;
+       static const double filter_mult = 0.03125;
 
        for(y = 0; y < h; ++y)
        for(x = 0; x < w; ++x)
@@ -380,6 +382,8 @@ void hmap_to_nmap_local(unsigned char *map, int w, int h, int src_chan, double s
                                break;
                }
                img_reduced[(w*y+x)] = (v - 128.0) / 127.0;
+               if(v < 1)
+                       v = 1; /* do not write alpha zero */
                map[(w*y+x)*4+3] = floor(v + 0.5);
        }
 
index 58e1e75..162f3c8 100755 (executable)
@@ -19,13 +19,13 @@ use File::Temp;
        our $Q3MAP2FLAGS = '-fs_forbiddenpath xonotic-data.pk3 -fs_forbiddenpath xonotic-data.pk3dir -fs_forbiddenpath xonotic-nexcompat.pk3 -fs_forbiddenpath xonotic-nexcompat.pk3dir';
 
        # Default flags for the -bsp stage
-       our $BSPFLAGS    = '-meta -samplesize 8 -minsamplesize 4 -mv 1000000 -mi 6000000';
+       our $BSPFLAGS    = '-meta -maxarea -samplesize 8 -minsamplesize 4 -mv 1000000 -mi 6000000';
 
        # Default flags for the -vis stage
        our $VISFLAGS    = '';
 
        # Default flags for the -light stage
-       our $LIGHTFLAGS  = '-deluxe -patchshadows -samples 3 -lightmapsize 512 -fast -fastbounce -dirty -bouncegrid';
+       our $LIGHTFLAGS  = '-lightmapsearchpower 3 -deluxe -patchshadows -samples 3 -lightmapsize 512 -fast -fastbounce -dirty -bouncegrid';
 
        # Default flags for the -minimap stage
        our $MINIMAPFLAGS = '';
index c2d7fe6..9e218f8 100755 (executable)
@@ -154,9 +154,11 @@ getthemap()
                continue
        fi
        if ! wget -O "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
-               rm -f "$bspdir/$M-$blobhash.pk3"
-               echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
-               return 0
+               if ! curl -o "$bspdir/$M-$blobhash.pk3" "$url$M-$blobhash.pk3"; then
+                       rm -f "$bspdir/$M-$blobhash.pk3"
+                       echo "WARNING: could not download $url$M-$blobhash.pk3, maybe not ready yet"
+                       return 0
+               fi
        fi
        if ! unzip -l "$bspdir/$M-$blobhash.pk3"; then
                rm -f "$bspdir/$M-$blobhash.pk3"
index af1ed9e..8d9be8d 100644 (file)
@@ -5,6 +5,6 @@ dirname2=
 screenshotname=xonotic
 userdirname=xonotic
 icon_icns="$d0/misc/logos/icons_icns/xonotic.icns"
-icon_ico="$d0/misc/logos/icons_ico/xonotic_64.ico"
+icon_ico="$d0/misc/logos/icons_ico/xonotic.ico"
 icon_xpm="$d0/misc/logos/icons_xpm/xonotic_32.xpm"
 icons_tga="$d0/misc/logos/icons_png/xonotic_64.png $d0/misc/logos/icons_png/xonotic_16.png $d0/misc/logos/icons_png/xonotic_22.png $d0/misc/logos/icons_png/xonotic_24.png $d0/misc/logos/icons_png/xonotic_32.png $d0/misc/logos/icons_png/xonotic_48.png $d0/misc/logos/icons_png/xonotic_128.png $d0/misc/logos/icons_png/xonotic_256.png $d0/misc/logos/icons_png/xonotic_512.png"