Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. void add_field( int x, int y, int z,int r, int age, int type, struct item_data *item,int n1, int n2)
  2. {
  3. struct field_data *f;
  4. struct item_data *titem;
  5.  
  6. titem = find_item(item);
  7.  
  8. f = (field_data*) new field_data();
  9. f->next = field_list;
  10. field_list = f;
  11.  
  12. f->x = x;
  13. f->y = y;
  14. f->z = z;
  15. f->radius = r;
  16. f->age = age;
  17. f->type = type;
  18. f->item = titem;
  19.  
  20. f->n1 = n1;
  21. f->n2 = n2;
  22.  
  23. }
Add Comment
Please, Sign In to add comment