1 /* $Id: player.c,v 1.3 2003-10-10 09:36:35 btb Exp $ */
17 static char rcsid[] = "$Id: player.c,v 1.3 2003-10-10 09:36:35 btb Exp $";
21 * reads a player_ship structure from a CFILE
23 void player_ship_read(player_ship *ps, CFILE *fp)
27 ps->model_num = cfile_read_int(fp);
28 ps->expl_vclip_num = cfile_read_int(fp);
29 ps->mass = cfile_read_fix(fp);
30 ps->drag = cfile_read_fix(fp);
31 ps->max_thrust = cfile_read_fix(fp);
32 ps->reverse_thrust = cfile_read_fix(fp);
33 ps->brakes = cfile_read_fix(fp);
34 ps->wiggle = cfile_read_fix(fp);
35 ps->max_rotthrust = cfile_read_fix(fp);
36 for (i = 0; i < N_PLAYER_GUNS; i++)
37 cfile_read_vector(&(ps->gun_points[i]), fp);