# Correct the needed linklibs in curl-config also.
[AROS-Contrib.git] / Games / Doom / m_bbox.c
blobe662077679119113aa405b842134db311ca9aaef
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.
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.
17 // $Log$
18 // Revision 1.1 2000/02/29 18:21:04 stegerg
19 // Doom port based on ADoomPPC. Read README.AROS!
22 // DESCRIPTION:
23 // Main loop menu stuff.
24 // Random number LUT.
25 // Default Config File.
26 // PCX Screenshots.
28 //-----------------------------------------------------------------------------
30 static const char
31 rcsid[] = "$Id$";
34 #ifdef __GNUG__
35 #pragma implementation "m_bbox.h"
36 #endif
37 #include "m_bbox.h"
42 void M_ClearBox (fixed_t *box)
44 box[BOXTOP] = box[BOXRIGHT] = MININT;
45 box[BOXBOTTOM] = box[BOXLEFT] = MAXINT;
48 void
49 M_AddToBox
50 ( fixed_t* box,
51 fixed_t x,
52 fixed_t y )
54 if (x<box[BOXLEFT])
55 box[BOXLEFT] = x;
56 else if (x>box[BOXRIGHT])
57 box[BOXRIGHT] = x;
58 if (y<box[BOXBOTTOM])
59 box[BOXBOTTOM] = y;
60 else if (y>box[BOXTOP])
61 box[BOXTOP] = y;