- oops, remove the (commented out) debugging code :)

This commit is contained in:
Adam Olsen 2001-10-20 21:10:34 +00:00
parent 9cae55b7d8
commit abfb96ff68

View file

@ -578,24 +578,6 @@ void() FlareGrenadeTouch =
// working properly. So I try to nudge them away from the // working properly. So I try to nudge them away from the
// wall // wall
setorigin (self, NudgePosition (self.origin)); setorigin (self, NudgePosition (self.origin));
/*
local vector netpos;
netpos_x = floor (self.origin_x * 8) / 8;
netpos_y = floor (self.origin_y * 8) / 8;
netpos_z = floor (self.origin_z * 8) / 8;
local float contents = pointcontents (netpos);
printf ("touch: %f\n", contents);
if (contents == CONTENTS_SOLID) {
local vector diff = self.origin - netpos;
printf ("origin: %v netpos: %v diff: %v ",
self.origin, netpos, diff);
diff_x = diff_x ? SIGN_f (diff_x) * 0.25 : 0.0;
diff_y = diff_y ? SIGN_f (diff_y) * 0.25 : 0.0;
diff_z = diff_z ? SIGN_f (diff_z) * 0.25 : 0.0;
printf ("nudge: %v\n", diff);
setorigin (self, self.origin + diff);
}
*/
} }
else else
{ {