Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
298 | serge | 1 | // Emacs style mode select -*- C++ -*- |
2 | //----------------------------------------------------------------------------- |
||
3 | // |
||
4 | // $Id:$ |
||
5 | // |
||
6 | // Copyright (C) 1993-1996 by id Software, Inc. |
||
7 | // |
||
8 | // This source is available for distribution and/or modification |
||
9 | // only under the terms of the DOOM Source Code License as |
||
10 | // published by id Software. All rights reserved. |
||
11 | // |
||
12 | // The source is distributed in the hope that it will be useful, |
||
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License |
||
15 | // for more details. |
||
16 | // |
||
17 | // $Log:$ |
||
18 | // |
||
19 | // DESCRIPTION: |
||
20 | // Main loop menu stuff. |
||
21 | // Random number LUT. |
||
22 | // Default Config File. |
||
23 | // PCX Screenshots. |
||
24 | // |
||
25 | //----------------------------------------------------------------------------- |
||
26 | |||
27 | static const char |
||
28 | rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $"; |
||
29 | |||
30 | |||
31 | #ifdef __GNUG__ |
||
32 | #pragma implementation "m_bbox.h" |
||
33 | #endif |
||
34 | #include "m_bbox.h" |
||
35 | |||
36 | |||
37 | |||
38 | |||
39 | void M_ClearBox (fixed_t *box) |
||
40 | { |
||
41 | box[BOXTOP] = box[BOXRIGHT] = MININT; |
||
42 | box[BOXBOTTOM] = box[BOXLEFT] = MAXINT; |
||
43 | } |
||
44 | |||
45 | void |
||
46 | M_AddToBox |
||
47 | ( fixed_t* box, |
||
48 | fixed_t x, |
||
49 | fixed_t y ) |
||
50 | { |
||
51 | if (x |
||
52 | box[BOXLEFT] = x; |
||
53 | else if (x>box[BOXRIGHT]) |
||
54 | box[BOXRIGHT] = x; |
||
55 | if (y |
||
56 | box[BOXBOTTOM] = y; |
||
57 | else if (y>box[BOXTOP]) |
||
58 | box[BOXTOP] = y; |
||
59 | } |
||
60 | |||
61 | |||
62 |