diff options
author | Willian Henrique <wsimanbrazil@yahoo.com.br> | 2022-11-29 21:20:18 -0300 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2022-12-26 14:24:54 +0000 |
commit | f28cd3c70fc75114413ce0719e298f30cec407fa (patch) | |
tree | 8ace8fb998de681052f603043b6954eb14d3bd16 /src | |
parent | 9a09c605402e6ff74f93f7fe7afc50ccc785acc3 (diff) |
Fix FOV feature crashing Portal 3420 on map load
This was an accidental regression in an earlier refactoring.
Diffstat (limited to 'src')
-rw-r--r-- | src/fov.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -72,9 +72,9 @@ static void fovcb(struct con_var *v) { } // ensure FOV is applied on load, if the engine wouldn't do that itself -HANDLE_EVENT(ClientActive, struct edict *player) { - if (player && real_fov_desired == fov_desired) { - orig_SetDefaultFOV(player, con_getvari(fov_desired)); +HANDLE_EVENT(ClientActive, struct edict *e) { + if (real_fov_desired == fov_desired) { + orig_SetDefaultFOV(e->ent_unknown, con_getvari(fov_desired)); } } |