- #include "ray.h"
- #include "globals.h"
- #include "rayspr.h"
- #include "sprswtch.h"
- void Switch_Object_Types(pobject switch_obj, pobject_type new_type) {
- if (switch_obj->extra_data!=NULL) {
- DelPtr(switch_obj->extra_data);
- switch_obj->extra_data=NULL;
- }
- switch_obj->type=new_type;
- (*new_type->Load_Extra)(switch_obj, BAD_LOAD_OFFSET);
- }