aboutsummaryrefslogtreecommitdiff
path: root/client/map/map.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-13 21:44:08 +0200
committertpart <tpart120@proton.me>2024-08-13 21:44:08 +0200
commitebc36f3f18547608c19ddeba39997c7bf2613010 (patch)
treed61153f28f8dc41d6f5045b634ed382ccce07d30 /client/map/map.gd
parent598cc27e750b00cb9c4e58789dee19c926bbd41e (diff)
downloadhurrycurry-ebc36f3f18547608c19ddeba39997c7bf2613010.tar
hurrycurry-ebc36f3f18547608c19ddeba39997c7bf2613010.tar.bz2
hurrycurry-ebc36f3f18547608c19ddeba39997c7bf2613010.tar.zst
Make global illumination setting a dropdown menu
Diffstat (limited to 'client/map/map.gd')
-rw-r--r--client/map/map.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/map/map.gd b/client/map/map.gd
index 7be1a102..208665bf 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -54,7 +54,7 @@ func _ready():
voxelgi_timer.connect("timeout", gi_bake)
Global.settings_changed.connect(func():
# is not baked yet but setting is true
- if Global.get_setting("voxel_gi") and not currently_baked:
+ if Global.get_setting("gi") == 2 and not currently_baked:
gi_bake()
else:
currently_baked = false
@@ -62,7 +62,7 @@ func _ready():
)
func gi_bake():
- if not Global.get_setting("voxel_gi"): return
+ if not Global.get_setting("gi") == 2: return
print("Map: Rebaking VoxelGI")
currently_baked = true
gi_bake_blocking()