summaryrefslogtreecommitdiffhomepage
path: root/src/fov.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-08-30 23:18:38 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-08-30 23:44:50 +0100
commit464c9398ae49d8faae46f81fb7040155408858f7 (patch)
tree3c8f035e752124a7f9f32179fa01d5c56c9d2439 /src/fov.c
parent8a1c4de9b33128c10378f1938d8a60c071f01ad0 (diff)
Perform very minor load/unload optimisations
Because why not.
Diffstat (limited to 'src/fov.c')
-rw-r--r--src/fov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fov.c b/src/fov.c
index 1886c1f..7500064 100644
--- a/src/fov.c
+++ b/src/fov.c
@@ -118,6 +118,7 @@ INIT {
}
END {
+ if (!sst_userunloaded) return;
if (real_fov_desired && real_fov_desired != fov_desired) {
real_fov_desired->parent->maxval = 90;
if (con_getvarf(real_fov_desired) > 90) {