home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / RAYCAST.ZIP / SPRSWTCH.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-19  |  370 b   |  15 lines

  1. #include "ray.h"
  2. #include "globals.h"
  3. #include "rayspr.h"
  4. #include "sprswtch.h"
  5.  
  6. void Switch_Object_Types(pobject switch_obj, pobject_type new_type) {
  7.    if (switch_obj->extra_data!=NULL) {
  8.      DelPtr(switch_obj->extra_data);
  9.      switch_obj->extra_data=NULL;
  10.    }
  11.    switch_obj->type=new_type;
  12.    (*new_type->Load_Extra)(switch_obj, BAD_LOAD_OFFSET);
  13. }
  14.  
  15.