Allocate and initialize an effect_info struct for an object
| 621 | #include "psrand.h" |
| 622 | // Allocate and initialize an effect_info struct for an object |
| 623 | void ObjCreateEffectInfo(object *objp) { |
| 624 | if (objp->effect_info) |
| 625 | mem_free(objp->effect_info); |
| 626 | |
| 627 | objp->effect_info = (effect_info_s *)mem_malloc(sizeof(effect_info_s)); |
| 628 | memset(objp->effect_info, 0, sizeof(effect_info_s)); |
| 629 | ASSERT(objp->effect_info); |
| 630 | objp->effect_info->sound_handle = SOUND_NONE_INDEX; |
| 631 | } |
| 632 | void ObjSetRenderPolyobj(object *objp, int model_num, int dying_model_num = -1); |
| 633 | #define NUM_PLAYER_ATTACH_POINTS 3 |
| 634 | // Initialize the polygon object information for an object |
no outgoing calls
no test coverage detected