Merge branch 'master' into divVerent/crypto2
Conflicts: all
11
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
|
||||
|
BIN
misc/logos/icons_ico/xonotic.ico
Normal file
After Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 17 KiB |
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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 = '';
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|