for what it does and doesn't do, but this will suffice for now. Added the
-nomouse flag to GLX. Debugging is a bitch without it, really. Also made
a few minor changes for gcc v3 building. I'm not through with makefile
yet, though.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1260
d7cf8633-e32d-0410-b094-
e92efae38249
}
return 0;
-}
\ No newline at end of file
+}
+
-#define BUILDNUMBER 253
+#define BUILDNUMBER 256
int buildnumber = BUILDNUMBER;
static char *argvdummy = " ";
static char *safeargvs[NUM_SAFE_ARGVS] =
- {"-stdvid", "-nolan", "-nosound", "-nocdaudio", "-nojoy", "-nomouse", "-dibonly"};
+ {"-stdvid", "-nolan", "-nosound", "-nocdaudio", "-nojoy", "-nomouse", "-window"};
cvar_t registered = {0, "registered","0"};
cvar_t cmdline = {0, "cmdline","0"};
all: buildnum darkplaces-glx
#all: darkplaces-glx darkplaces-3dfx
-buildnum/buildnum:
- cd buildnum
- make
- cd ..
-
-buildnum: buildnum/buildnum
- buildnum/buildnum buildnumber.c
+buildnum:
+ make -C buildnum
.c.o:
gcc $(CFLAGS) -c $*.c
clean:
+ -make -C buildnum clean
-rm -f darkplaces-glx darkplaces-3dfx
-rm -f vid_glx.o in_svgalib.o vid_3dfxsvga.o $(OBJECTS) *.d
return NULL;
}
-static int GL_SkinCheck(byte *in, int width, int height, unsigned short bits)
-{
- int i, pixels, passed;
- byte pixeltest[16];
- for (i = 0;i < 16;i++)
- pixeltest[i] = (bits & (1 << i)) != 0;
- pixels = width*height;
- passed = 0;
- while(pixels--)
- {
- if (pixeltest[*in >> 4] && *in != 0 && *in != 255)
- return true;
- in++;
- }
- return false;
-}
static void Mod_LoadSkin (maliashdr_t *mheader, char *basename, byte *skindata, byte *skintemp, int width, int height, rtexture_t **skintex)
{
continue;
// LordHavoc: check if it's in a visible leaf
- leaf = leaf = Mod_PointInLeaf(p->org, cl.worldmodel);
+ leaf = Mod_PointInLeaf(p->org, cl.worldmodel);
if (leaf->visframe != r_framecount)
continue;
void IN_Init(void)
{
+ if (COM_CheckParm ("-nomouse"))
+ mouse_avail = false;
}
void IN_Shutdown(void)