20 void Print(
const char* fmt, ...);
159 if (g->
Life() == 0) {
168 if (g->
Life() == 0) {
177 if (l->
Life() == 0) {
189 Point dir = light_pos - obj_pos;
194 bool obscured =
false;
197 while (++g_iter && !obscured) {
201 double gdist = (g->
Location() - obj_pos).length();
203 g->
Radius() > obj_radius &&
204 (g->
Radius()*400)/gdist > 10) {
213 *impact_point = impact;
217 else if (obj_radius < 0 && gdist < 0.1) {
229 while (++g_iter && !obscured) {
233 double gdist = (g->
Location() - obj_pos).length();
235 g->
Radius() > obj_radius &&
236 (g->
Radius()*400)/gdist > 10) {
245 *impact_point = impact;
249 else if (obj_radius < 0 && gdist < 0.1) {