1
0
Fork 0
forked from fte/fteqw

Fix a couple of issues with the hl2 plugin.

This commit is contained in:
Shpoike 2024-11-02 14:37:58 +00:00
parent 3b140e9cf8
commit 3b554f3742
3 changed files with 4 additions and 3 deletions

View file

@ -896,7 +896,7 @@ static void BIH_RecursiveTrace (struct bihtrace_s *fte_restrict tr, const struct
VectorSubtract (tr->startpos, node->data.mesh.tr->origin, start_l); VectorSubtract (tr->startpos, node->data.mesh.tr->origin, start_l);
VectorSubtract (tr->endpos, node->data.mesh.tr->origin, end_l); VectorSubtract (tr->endpos, node->data.mesh.tr->origin, end_l);
node->data.mesh.model->funcs.NativeTrace(node->data.mesh.model, 0, NULLFRAMESTATE, node->data.mesh.tr->axis, start_l, end_l, tr->size.min, tr->size.max, tr->shape==shape_iscapsule, tr->hitcontents, &sub); submod->funcs.NativeTrace(submod, 0, NULLFRAMESTATE, node->data.mesh.tr->axis, start_l, end_l, tr->size.min, tr->size.max, tr->shape==shape_iscapsule, tr->hitcontents, &sub);
if (sub.truefraction < tr->trace.truefraction) if (sub.truefraction < tr->trace.truefraction)
{ {

View file

@ -682,7 +682,7 @@ static qboolean VMT_ReadVMT(const char *fname, vmtstate_t *st)
{ {
char *line, *file = NULL; char *line, *file = NULL;
com_tokentype_t ttype; com_tokentype_t ttype;
char token[MAX_QPATH]; char token[MAX_QPATH*2];
char *prefix="", *postfix=""; char *prefix="", *postfix="";
if (strstr(fname, "://")) if (strstr(fname, "://"))

View file

@ -238,7 +238,8 @@ enum hllumps_e
typedef struct { typedef struct {
unsigned int fileofs; unsigned int fileofs;
unsigned int filelen; unsigned int filelen;
unsigned int foo[2]; unsigned int version;
unsigned int fourcc;
} vlump_t; } vlump_t;
typedef struct { typedef struct {
unsigned int magic; unsigned int magic;