summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fov.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fov.c b/src/fov.c
index 9ab1137..8319ed1 100644
--- a/src/fov.c
+++ b/src/fov.c
@@ -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));
}
}