Returns a pointer to the lighting info for the specified object
| 641 | |
| 642 | // Returns a pointer to the lighting info for the specified object |
| 643 | light_info *ObjGetLightInfo(object *objp) { |
| 644 | if (objp->lighting_info) |
| 645 | return objp->lighting_info; |
| 646 | |
| 647 | if ((objp->type == OBJ_POWERUP) || (objp->type == OBJ_ROBOT) || (objp->type == OBJ_CLUTTER) || |
| 648 | (objp->type == OBJ_BUILDING)) |
| 649 | return &Object_info[objp->id].lighting_info; |
| 650 | |
| 651 | if (objp->type == OBJ_WEAPON) |
| 652 | return &Weapons[objp->id].lighting_info; |
| 653 | |
| 654 | Int3(); |
| 655 | |
| 656 | return NULL; |
| 657 | } |
no outgoing calls
no test coverage detected