mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-29 02:10:36 +00:00
- Duke: Clean up a few missed things during f39939d114
.
This commit is contained in:
parent
0c55a533be
commit
e2691d4184
4 changed files with 11 additions and 12 deletions
|
@ -195,12 +195,9 @@ inline void backupplayer(player_struct* p)
|
||||||
}
|
}
|
||||||
|
|
||||||
// the weapon display code uses this.
|
// the weapon display code uses this.
|
||||||
inline double get16thOfHoriz(int snum, bool interpolate, double smoothratio)
|
inline double get16thOfHoriz(int const snum, bool const interpolate, double const smoothratio)
|
||||||
{
|
{
|
||||||
struct player_struct *p = &ps[snum];
|
return (!interpolate ? ps[snum].horizon.sum() : ps[snum].horizon.interpolatedsum(smoothratio)).asq16() * (0.0625 / FRACUNIT);
|
||||||
fixed_t ohorz = p->horizon.ohoriz.asq16() - p->horizon.ohorizoff.asq16();
|
|
||||||
fixed_t horz = p->horizon.horiz.asq16() - p->horizon.horizoff.asq16();
|
|
||||||
return (!interpolate ? horz : ohorz + fmulscale16(horz - ohorz, smoothratio)) * (0.0625 / FRACUNIT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,8 @@ BEGIN_DUKE_NS
|
||||||
|
|
||||||
int myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
|
int myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
|
||||||
short globalskillsound;
|
short globalskillsound;
|
||||||
fixed_t q16myang, oq16myang, q16myhoriz, oq16myhoriz, q16myhorizoff, oq16myhorizoff;
|
fixed_t q16myang, oq16myang;
|
||||||
|
fixedhoriz myhoriz, omyhoriz, myhorizoff, omyhorizoff;
|
||||||
short mycursectnum, myjumpingcounter;
|
short mycursectnum, myjumpingcounter;
|
||||||
char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
|
char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
|
||||||
int fakemovefifoplc;
|
int fakemovefifoplc;
|
||||||
|
@ -55,8 +56,8 @@ void resetmys()
|
||||||
myz = omyz = ps[myconnectindex].posz;
|
myz = omyz = ps[myconnectindex].posz;
|
||||||
myxvel = myyvel = myzvel = 0;
|
myxvel = myyvel = myzvel = 0;
|
||||||
q16myang = oq16myang = ps[myconnectindex].q16ang;
|
q16myang = oq16myang = ps[myconnectindex].q16ang;
|
||||||
q16myhoriz = oq16myhoriz = ps[myconnectindex].horizon.horiz.asq16();
|
myhoriz = omyhoriz = ps[myconnectindex].horizon.horiz;
|
||||||
q16myhorizoff = oq16myhorizoff = ps[myconnectindex].horizon.horizoff.asq16();
|
myhorizoff = omyhorizoff = ps[myconnectindex].horizon.horizoff;
|
||||||
mycursectnum = ps[myconnectindex].cursectnum;
|
mycursectnum = ps[myconnectindex].cursectnum;
|
||||||
myjumpingcounter = ps[myconnectindex].jumping_counter;
|
myjumpingcounter = ps[myconnectindex].jumping_counter;
|
||||||
myjumpingtoggle = ps[myconnectindex].jumping_toggle;
|
myjumpingtoggle = ps[myconnectindex].jumping_toggle;
|
||||||
|
|
|
@ -5,7 +5,8 @@ BEGIN_DUKE_NS
|
||||||
extern int myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
|
extern int myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
|
||||||
extern short globalskillsound;
|
extern short globalskillsound;
|
||||||
extern short mycursectnum, myjumpingcounter;
|
extern short mycursectnum, myjumpingcounter;
|
||||||
extern fixed_t q16myang, oq16myang, q16myhoriz, oq16myhoriz, q16myhorizoff, oq16myhorizoff;
|
extern fixed_t q16myang, oq16myang;
|
||||||
|
extern fixedhoriz myhoriz, omyhoriz, myhorizoff, omyhorizoff;
|
||||||
extern char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
|
extern char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
|
||||||
extern int fakemovefifoplc;
|
extern int fakemovefifoplc;
|
||||||
extern int myxbak[MOVEFIFOSIZ], myybak[MOVEFIFOSIZ], myzbak[MOVEFIFOSIZ];
|
extern int myxbak[MOVEFIFOSIZ], myybak[MOVEFIFOSIZ], myzbak[MOVEFIFOSIZ];
|
||||||
|
|
|
@ -554,15 +554,15 @@ void displayrooms(int snum, double smoothratio)
|
||||||
cposz = omyz + xs_CRoundToInt(fmulscale16(myz - omyz, smoothratio));
|
cposz = omyz + xs_CRoundToInt(fmulscale16(myz - omyz, smoothratio));
|
||||||
if (cl_syncinput)
|
if (cl_syncinput)
|
||||||
{
|
{
|
||||||
fixed_t ohorz = (oq16myhoriz + oq16myhorizoff);
|
fixed_t ohorz = (omyhoriz.asq16() + omyhorizoff.asq16());
|
||||||
fixed_t horz = (q16myhoriz + q16myhorizoff);
|
fixed_t horz = (myhoriz.asq16() + myhorizoff.asq16());
|
||||||
choriz = q16horiz(ohorz + xs_CRoundToInt(fmulscale16(horz - ohorz, smoothratio)));
|
choriz = q16horiz(ohorz + xs_CRoundToInt(fmulscale16(horz - ohorz, smoothratio)));
|
||||||
cang = q16ang(oq16myang + xs_CRoundToInt(fmulscale16(((q16myang + dang - oq16myang) & 0x7FFFFFF) - dang, smoothratio)));
|
cang = q16ang(oq16myang + xs_CRoundToInt(fmulscale16(((q16myang + dang - oq16myang) & 0x7FFFFFF) - dang, smoothratio)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cang = q16ang(q16myang);
|
cang = q16ang(q16myang);
|
||||||
choriz = q16horiz(q16myhoriz + q16myhorizoff);
|
choriz = q16horiz(myhoriz.asq16() + myhorizoff.asq16());
|
||||||
}
|
}
|
||||||
sect = mycursectnum;
|
sect = mycursectnum;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue