1 /* $Id: player.c,v 1.2 2002-07-26 20:23:30 btb Exp $ */
11 static char rcsid[] = "$Id: player.c,v 1.2 2002-07-26 20:23:30 btb Exp $";
15 * reads a player_ship structure from a CFILE
17 void player_ship_read(player_ship *ps, CFILE *fp)
21 ps->model_num = cfile_read_int(fp);
22 ps->expl_vclip_num = cfile_read_int(fp);
23 ps->mass = cfile_read_fix(fp);
24 ps->drag = cfile_read_fix(fp);
25 ps->max_thrust = cfile_read_fix(fp);
26 ps->reverse_thrust = cfile_read_fix(fp);
27 ps->brakes = cfile_read_fix(fp);
28 ps->wiggle = cfile_read_fix(fp);
29 ps->max_rotthrust = cfile_read_fix(fp);
30 for (i = 0; i < N_PLAYER_GUNS; i++)
31 cfile_read_vector(&(ps->gun_points[i]), fp);