- pass smoothratio through to displayweapon().

This commit is contained in:
Mitchell Richters 2020-08-02 13:43:45 +10:00 committed by Christoph Oelckers
parent 0c12436092
commit 4499e05b06
5 changed files with 6 additions and 6 deletions

View file

@ -105,8 +105,8 @@ void checkweapons_d(struct player_struct* p);
void checkweapons_r(struct player_struct* p);
void processinput_d(int snum);
void processinput_r(int snum);
void displayweapon_d(int snum);
void displayweapon_r(int snum);
void displayweapon_d(int snum, double smoothratio);
void displayweapon_r(int snum, double smoothratio);
void displaymasks_d(int snum);
void displaymasks_r(int snum);
void think_d();

View file

@ -109,7 +109,7 @@ struct Dispatcher
int (*doincrements)(struct player_struct* p);
void (*checkweapons)(struct player_struct* p);
void (*processinput)(int snum);
void (*displayweapon)(int snum);
void (*displayweapon)(int snum, double smoothratio);
void (*displaymasks)(int snum);
void (*animatesprites)(int x, int y, int a, int smoothratio);

View file

@ -286,7 +286,7 @@ void displayrest(double smoothratio)
cameratext(pp->newowner);
else
{
fi.displayweapon(screenpeek);
fi.displayweapon(screenpeek, smoothratio);
if (pp->over_shoulder_on == 0)
fi.displaymasks(screenpeek);
}

View file

@ -269,7 +269,7 @@ int animateaccess(int gs,int snum)
//
//---------------------------------------------------------------------------
void displayweapon_d(int snum)
void displayweapon_d(int snum, double smoothratio)
{
int gun_pos, looking_arc, cw;
int weapon_xoffset, i, j;

View file

@ -109,7 +109,7 @@ void ShowBoat(double x, double y, int tilenum, int shade, int orientation, int p
//
//---------------------------------------------------------------------------
void displayweapon_r(int snum)
void displayweapon_r(int snum, double smoothratio)
{
int gun_pos, looking_arc, cw;
int weapon_xoffset, i, j;