1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
22 | */ |
22 | */ |
23 | |
23 | |
24 | /* Nov 95 - inserted USE_LIGHTING code stuff in here - b.t. */ |
24 | /* Nov 95 - inserted USE_LIGHTING code stuff in here - b.t. */ |
25 | |
25 | |
26 | #include <global.h> |
26 | #include <global.h> |
27 | #include <funcpoint.h> |
|
|
28 | #include <math.h> |
27 | #include <math.h> |
29 | |
28 | |
30 | /* Distance must be less than this for the object to be blocked. |
29 | /* Distance must be less than this for the object to be blocked. |
31 | * An object is 1.0 wide, so if set to 0.5, it means the object |
30 | * An object is 1.0 wide, so if set to 0.5, it means the object |
32 | * that blocks half the view (0.0 is complete block) will |
31 | * that blocks half the view (0.0 is complete block) will |