mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-23 20:52:29 +00:00
- oops, remove the (commented out) debugging code :)
This commit is contained in:
parent
9cae55b7d8
commit
abfb96ff68
1 changed files with 0 additions and 18 deletions
18
often.qc
18
often.qc
|
@ -578,24 +578,6 @@ void() FlareGrenadeTouch =
|
|||
// working properly. So I try to nudge them away from the
|
||||
// wall
|
||||
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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue