undo of last patch - was no good
This commit is contained in:
parent
131660a20d
commit
20ee2c38cf
|
@ -761,7 +761,7 @@ void init_polygon_models()
|
|||
//more-or-less fill the canvas. Note that this routine actually renders
|
||||
//into an off-screen canvas that it creates, then copies to the current
|
||||
//canvas.
|
||||
void draw_model_picture(int x, int y, int w, int h, int mn, vms_angvec *orient_angles)
|
||||
void draw_model_picture(int mn,vms_angvec *orient_angles)
|
||||
{
|
||||
vms_vector temp_pos=ZERO_VECTOR;
|
||||
vms_matrix temp_orient = IDENTITY_MATRIX;
|
||||
|
|
|
@ -198,7 +198,7 @@ int read_model_guns(char *filename,vms_vector *gun_points, vms_vector *gun_dirs,
|
|||
//more-or-less fill the canvas. Note that this routine actually renders
|
||||
//into an off-screen canvas that it creates, then copies to the current
|
||||
//canvas.
|
||||
void draw_model_picture(int x, int y, int w, int h, int mn,vms_angvec *orient_angles);
|
||||
void draw_model_picture(int mn,vms_angvec *orient_angles);
|
||||
|
||||
#define MAX_POLYOBJ_TEXTURES 50
|
||||
extern grs_bitmap *texture_list[MAX_POLYOBJ_TEXTURES];
|
||||
|
|
|
@ -454,18 +454,13 @@ void show_spinning_robot_frame(int robot_num)
|
|||
{
|
||||
grs_canvas *curcanv_save;
|
||||
|
||||
int x = rescale_x(138);
|
||||
int y = rescale_y(55);
|
||||
int w = rescale_x(162);
|
||||
int h = rescale_y(134);
|
||||
|
||||
if (robot_num != -1) {
|
||||
|
||||
Robot_angles.h += 150;
|
||||
curcanv_save = grd_curcanv;
|
||||
grd_curcanv = Robot_canv;
|
||||
Assert(Robot_info[robot_num].model_num != -1);
|
||||
draw_model_picture(x, y, w, h, Robot_info[robot_num].model_num, &Robot_angles);
|
||||
draw_model_picture(Robot_info[robot_num].model_num, &Robot_angles);
|
||||
grd_curcanv = curcanv_save;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue