]> icculus.org git repositories - btb/d2x.git/blob - main/player.c
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / main / player.c
1
2 /*
3  *
4  * Player Stuff
5  *
6  */
7
8 #ifdef HAVE_CONFIG_H
9 #include <conf.h>
10 #endif
11
12 #include "inferno.h"
13 #include "cfile.h"
14
15
16 /*
17  * reads a player_ship structure from a CFILE
18  */
19 void player_ship_read(player_ship *ps, CFILE *fp)
20 {
21         int i;
22
23         ps->model_num = cfile_read_int(fp);
24         ps->expl_vclip_num = cfile_read_int(fp);
25         ps->mass = cfile_read_fix(fp);
26         ps->drag = cfile_read_fix(fp);
27         ps->max_thrust = cfile_read_fix(fp);
28         ps->reverse_thrust = cfile_read_fix(fp);
29         ps->brakes = cfile_read_fix(fp);
30         ps->wiggle = cfile_read_fix(fp);
31         ps->max_rotthrust = cfile_read_fix(fp);
32         for (i = 0; i < N_PLAYER_GUNS; i++)
33                 cfile_read_vector(&(ps->gun_points[i]), fp);
34 }