Prevent FAT_TEM width selector causing crash

This commit is contained in:
Simon 2020-04-13 22:29:57 +01:00
parent e313ddcab1
commit 2f8d200246
4 changed files with 3 additions and 3 deletions

View file

@ -197,7 +197,7 @@ void GLSceneDrawer::DrawPSprite (player_t * player,DPSprite *psp, float sx, floa
x1 = vw / 2 + (x1 - vw / 2) * gl_fatItemWidth;
x2 = vw / 2 + (x2 - vw / 2) * gl_fatItemWidth;
float inc = (x2 - x1) / 10.0f;
float inc = (x2 - x1) / 12.0f;
for (float x = x1; x <= x2; x += inc)
{
FQuadDrawer qd2;

View file

@ -273,7 +273,7 @@ namespace s3d
bool OculusQuestMode::GetHandTransform(int hand, VSMatrix* mat) const
{
player_t *player = r_viewpoint.camera->player;
player_t* player = r_viewpoint.camera ? r_viewpoint.camera->player : nullptr;
if (player)
{
AActor* playermo = player->mo;

View file

@ -2296,7 +2296,7 @@ OptionMenu VROptionsMenu protected
Slider "Weapon Pitch Adjust", "vr_weaponRotate", -45, 45, 5, 2
Slider "Weapon Scale", "vr_weaponScale", 0.1, 1.0, 0.01, 2
Option "Weapon Sprite 3D", "r_PlayerSprites3DMode", "Sprites3DMode"
Slider "Weapon Fat Item Width", "gl_fatItemWidth", 0.0, 1.0, 0.1, 2
Slider "Weapon Fat Item Width", "gl_fatItemWidth", 0.1, 1.0, 0.1, 2
Option "Weapon Recoil", "vr_recoil", "OnOff"
StaticText " "

Binary file not shown.