fixed some minor issues
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1337 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ca11c54292
commit
13cade8fe9
4 changed files with 20 additions and 6 deletions
|
@ -456,6 +456,8 @@ endif
|
|||
|
||||
|
||||
|
||||
MINGL_EXE_NAME=../fteqw.mingl
|
||||
MINGL_DIR=mingl_linux
|
||||
endif
|
||||
|
||||
SV_DIR?=sv_sdl
|
||||
|
@ -533,8 +535,8 @@ gl-dbg:
|
|||
$(MAKE) gl-tmp TYPE=_clsv-dbg OUT_DIR="$(DEBUG_DIR)/$(GLB_DIR)"
|
||||
|
||||
|
||||
mingl-tmp:
|
||||
$(MAKE) $(TYPE) OUT_DIR="$(OUT_DIR)" EXE_NAME=$(MINGL_EXE_NAME)" WCFLAGS="$(GL_CFLAGS) -DMINIMAL" LDFLAGS="$(GL_LDFLAGS)" SOBJS="$(GLCL_OBJS)"
|
||||
mingl-tmp: reldir
|
||||
$(MAKE) $(TYPE) OUT_DIR="$(OUT_DIR)" EXE_NAME="$(MINGL_EXE_NAME)" WCFLAGS="$(GL_CFLAGS) -DMINIMAL" LDFLAGS="$(GL_LDFLAGS)" SOBJS="$(GLCL_OBJS)"
|
||||
mingl-rel:
|
||||
$(MAKE) mingl-tmp TYPE=_cl-rel OUT_DIR="$(RELEASE_DIR)/$(MINGL_DIR)"
|
||||
|
||||
|
|
|
@ -3274,8 +3274,12 @@ void GL_Upload8 (qbyte *data, int width, int height, qboolean mipmap, qboolean
|
|||
{
|
||||
p = data[i];
|
||||
if (p == 255)
|
||||
{
|
||||
noalpha = false;
|
||||
trans[i] = d_8to24rgbtable[p];
|
||||
trans[i] = 0;
|
||||
}
|
||||
else
|
||||
trans[i] = d_8to24rgbtable[p];
|
||||
}
|
||||
|
||||
switch( alpha )
|
||||
|
|
|
@ -524,6 +524,12 @@ reeval:
|
|||
|
||||
if (newf->first_statement < 0)
|
||||
{ // negative statements are built in functions
|
||||
|
||||
if (pr_typecurrent != 0)
|
||||
{
|
||||
PR_MoveParms(progfuncs, 0, pr_typecurrent);
|
||||
PR_SwitchProgs(progfuncs, 0);
|
||||
}
|
||||
i = -newf->first_statement;
|
||||
// p = pr_typecurrent;
|
||||
progfuncs->lastcalledbuiltinnumber = i;
|
||||
|
|
|
@ -174,10 +174,12 @@ void QCC_FindBestInclude(char *newfile, char *currentfile, char *rootpath)
|
|||
if (*stripfrom == '/' || *stripfrom == '\\')
|
||||
break;
|
||||
}
|
||||
|
||||
strcpy(end, rootpath); end = end+strlen(end);
|
||||
if (*fullname)
|
||||
strcpy(end, "/"); end = end+strlen(end);
|
||||
if (*fullname && end[-1] != '/')
|
||||
{
|
||||
strcpy(end, "/");
|
||||
end = end+strlen(end);
|
||||
}
|
||||
strncpy(end, currentfile, stripfrom - currentfile); end += stripfrom - currentfile; *end = '\0';
|
||||
strcpy(end, newfile);
|
||||
|
||||
|
|
Loading…
Reference in a new issue