1 /* $Id: ksegmove.c,v 1.3 2004-12-19 15:21:11 btb Exp $ */
3 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
4 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
5 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
6 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
7 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
8 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
9 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
10 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
11 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
12 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
17 * Functions for moving segments.
22 static char rcsid[] = "$Id: ksegmove.c,v 1.3 2004-12-19 15:21:11 btb Exp $";
37 // -- old -- int SegOrientCommon(fixang *ang, fix val)
39 // -- old -- *ang += val;
40 // -- old -- med_rotate_segment_ang(Cursegp,&Seg_orientation);
41 // -- old -- Update_flags |= UF_WORLD_CHANGED;
42 // -- old -- mine_changed = 1;
43 // -- old -- warn_if_concave_segment(Cursegp);
44 // -- old -- return 1;
47 int SegOrientCommon(fixang *ang, fix val)
49 Seg_orientation.p = 0;
50 Seg_orientation.b = 0;
51 Seg_orientation.h = 0;
54 rotate_segment_new(&Seg_orientation);
55 Update_flags |= UF_WORLD_CHANGED;
57 warn_if_concave_segment(Cursegp);
61 // ---------- segment orientation control ----------
66 return SegOrientCommon(&Seg_orientation.h,-512);
71 return SegOrientCommon(&Seg_orientation.h,+512);
76 return SegOrientCommon(&Seg_orientation.p,-512);
81 return SegOrientCommon(&Seg_orientation.p,+512);
86 return SegOrientCommon(&Seg_orientation.b,-512);
91 return SegOrientCommon(&Seg_orientation.b,+512);