Skip to content

Commit

Permalink
Fix teleporter zoom in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Oct 31, 2023
1 parent 53c85ac commit 55a2302
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
## Bug Fixes

- **Disabled teleport-to-Automap-pointer during non-Casual Play**
- **Teleporter Zoom affecting all players in multiplayer**
- **Tweaked dark menu background and Automap overlay algorithm** (fixes very low values)
5 changes: 4 additions & 1 deletion src/p_telept.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ int EV_Teleport(line_t *line, int side, mobj_t *thing)
player->centering = true;

P_SetPlayerEvent(player, TIMER_TELEPORT); // [Nugget] Teleport timer
R_SetFOVFX(FOVFX_TELEPORT); // [Nugget] Teleporter zoom

// [Nugget] Teleporter zoom
if (player == &players[displayplayer])
{ R_SetFOVFX(FOVFX_TELEPORT); }
}

// spawn teleport fog and emit sound at source
Expand Down
4 changes: 2 additions & 2 deletions src/r_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void R_RenderPlayerView(player_t *player); // Called by G_Drawer.
void R_Init(void); // Called by startup code.
void R_SetViewSize(int blocks); // Called by M_Responder.

// [Nugget] FOV from Doom Retro /------
// [Nugget] FOV from Doom Retro /---------------------------------------------

extern boolean fovchange;
extern float fovdiff;
Expand Down Expand Up @@ -145,7 +145,7 @@ extern void R_SetFOVFX(int fx);
extern int R_GetZoom(void);
extern void R_SetZoom(const int state);

// [Nugget] --------------------------/
// [Nugget] -----------------------------------------------------------------/

// [Nugget] Explosion shake effect
extern void R_SetShake(int value);
Expand Down

0 comments on commit 55a2302

Please sign in to comment.