mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Fix splitscreen fov being fucked on first R_ExecuteSetViewSize
This commit is contained in:
parent
65cc5f52f2
commit
eec54356c3
1 changed files with 14 additions and 6 deletions
20
src/r_main.c
20
src/r_main.c
|
|
@ -601,6 +601,12 @@ static inline void R_InitLightTables(void)
|
||||||
//#define WOUGHMP_WOUGHMP // I got a fish-eye lens - I'll make a rap video with a couple of friends
|
//#define WOUGHMP_WOUGHMP // I got a fish-eye lens - I'll make a rap video with a couple of friends
|
||||||
// it's kinda laggy sometimes
|
// it's kinda laggy sometimes
|
||||||
|
|
||||||
|
#ifdef WOUGHMP_WOUGHMP
|
||||||
|
#define AHHHH_IM_SO_MAAAAD { 0U, 0, FRACUNIT, NULL, 0, 0, {0}, {0}, false }
|
||||||
|
#else
|
||||||
|
#define AHHHH_IM_SO_MAAAAD { 0U, FRACUNIT, NULL, 0, 0, {0}, {0}, false }
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct viewmorph {
|
static struct viewmorph {
|
||||||
angle_t rollangle; // pre-shifted by fineshift
|
angle_t rollangle; // pre-shifted by fineshift
|
||||||
#ifdef WOUGHMP_WOUGHMP
|
#ifdef WOUGHMP_WOUGHMP
|
||||||
|
|
@ -615,7 +621,14 @@ static struct viewmorph {
|
||||||
INT16 ceilingclip[MAXVIDWIDTH], floorclip[MAXVIDWIDTH];
|
INT16 ceilingclip[MAXVIDWIDTH], floorclip[MAXVIDWIDTH];
|
||||||
|
|
||||||
boolean use;
|
boolean use;
|
||||||
} viewmorph[MAXSPLITSCREENPLAYERS] = {0};
|
} viewmorph[MAXSPLITSCREENPLAYERS] = {
|
||||||
|
AHHHH_IM_SO_MAAAAD,
|
||||||
|
AHHHH_IM_SO_MAAAAD,
|
||||||
|
AHHHH_IM_SO_MAAAAD,
|
||||||
|
AHHHH_IM_SO_MAAAAD,
|
||||||
|
};
|
||||||
|
|
||||||
|
#undef AHHHH_IM_SO_MAAAAD
|
||||||
|
|
||||||
void R_CheckViewMorph(int s)
|
void R_CheckViewMorph(int s)
|
||||||
{
|
{
|
||||||
|
|
@ -643,11 +656,6 @@ void R_CheckViewMorph(int s)
|
||||||
fixed_t fisheye = cv_cam2_turnmultiplier.value; // temporary test value
|
fixed_t fisheye = cv_cam2_turnmultiplier.value; // temporary test value
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (v->zoomneeded == 0)
|
|
||||||
{
|
|
||||||
v->zoomneeded = FRACUNIT;
|
|
||||||
}
|
|
||||||
|
|
||||||
rollangle >>= ANGLETOFINESHIFT;
|
rollangle >>= ANGLETOFINESHIFT;
|
||||||
rollangle = ((rollangle+2) & ~3) & FINEMASK; // Limit the distinct number of angles to reduce recalcs from angles changing a lot.
|
rollangle = ((rollangle+2) & ~3) & FINEMASK; // Limit the distinct number of angles to reduce recalcs from angles changing a lot.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue