Function to return an AABB based on the current workzone AABB (retrieved from the currently selected brushes), or to use the default light radius if the workzone AABB is not valid or none is available.
| 41 | // from the currently selected brushes), or to use the default light radius |
| 42 | // if the workzone AABB is not valid or none is available. |
| 43 | AABB Doom3Light_getBounds(AABB aabb) |
| 44 | { |
| 45 | // If the extents are 0 or invalid (-1), replace with the default radius |
| 46 | for (int i = 0; i < 3; i++) |
| 47 | { |
| 48 | if (aabb.extents[i] <= 0) |
| 49 | { |
| 50 | aabb.extents[i] = DEFAULT_LIGHT_RADIUS; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | return aabb; |
| 55 | } |
| 56 | |
| 57 | IEntityNodePtr createNodeForEntity(const IEntityClassPtr& eclass) |
| 58 | { |
no outgoing calls
no test coverage detected