pr_global_struct->self = EDICT_TO_PROG(touch);
pr_global_struct->other = EDICT_TO_PROG(ent);
pr_global_struct->time = sv.time;
- PR_ExecuteProgram (touch->v.touch);
+ PR_ExecuteProgram (touch->v.touch, "");
pr_global_struct->self = old_self;
pr_global_struct->other = old_other;
}
else
{
- // LordHavoc: unrolled vector operation because the compiler can't be sure vec3_origin is 0
-// VectorSubtract (vec3_origin, plane->normal, trace->plane.normal);
- trace->plane.normal[0] = -plane->normal[0];
- trace->plane.normal[1] = -plane->normal[1];
- trace->plane.normal[2] = -plane->normal[2];
+ VectorNegate (plane->normal, trace->plane.normal);
trace->plane.dist = -plane->dist;
}
return true; // empty
}
- // LordHavoc: this can be eliminated by validating in the loader... but Mercury told me not to bother
- if (num < hull->firstclipnode || num > hull->lastclipnode)
- Sys_Error ("SV_RecursiveHullCheck: bad node number");
-
// find the point distances
node = hull->clipnodes + num;
plane = hull->planes + node->planenum;
}
else
{
- // LordHavoc: vec3_origin is evil; the compiler can not rely on it being '0 0 0'
-// VectorSubtract (vec3_origin, plane->normal, trace->plane.normal);
- trace->plane.normal[0] = -plane->normal[0];
- trace->plane.normal[1] = -plane->normal[1];
- trace->plane.normal[2] = -plane->normal[2];
+ VectorNegate (plane->normal, trace->plane.normal);
trace->plane.dist = -plane->dist;
}
if (trace.fraction != 1)
{
- VectorSubtract (vec3_origin, ent->v.angles, a);
+ VectorNegate (ent->v.angles, a);
AngleVectors (a, forward, right, up);
VectorCopy (trace.endpos, temp);
trace = SV_ClipMoveToEntity (touch, clip->start, clip->mins2, clip->maxs2, clip->end);
else
trace = SV_ClipMoveToEntity (touch, clip->start, clip->mins, clip->maxs, clip->end);
- if (trace.allsolid || trace.startsolid ||
- trace.fraction < clip->trace.fraction)
+ if (trace.allsolid || trace.startsolid || trace.fraction < clip->trace.fraction)
{
trace.ent = touch;
if (clip->trace.startsolid)