mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +00:00
Fix mindswap forcibly enabling ambient occlusion
This commit is contained in:
@@ -196,6 +196,7 @@
|
|||||||
screenmob.client.screen -= infodisplay
|
screenmob.client.screen -= infodisplay
|
||||||
|
|
||||||
for(var/thing in plane_masters)
|
for(var/thing in plane_masters)
|
||||||
|
plane_masters[thing].backdrop(screenmob)
|
||||||
screenmob.client.screen += plane_masters[thing]
|
screenmob.client.screen += plane_masters[thing]
|
||||||
|
|
||||||
hud_version = display_hud_version
|
hud_version = display_hud_version
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
blend_mode = BLEND_OVERLAY
|
blend_mode = BLEND_OVERLAY
|
||||||
|
|
||||||
/obj/screen/plane_master/game_world/backdrop(mob/mymob)
|
/obj/screen/plane_master/game_world/backdrop(mob/mymob)
|
||||||
|
filters = list()
|
||||||
if(istype(mymob) && mymob.client && mymob.client.prefs && mymob.client.prefs.ambientocclusion)
|
if(istype(mymob) && mymob.client && mymob.client.prefs && mymob.client.prefs.ambientocclusion)
|
||||||
filters += AMBIENT_OCCLUSION
|
filters += AMBIENT_OCCLUSION
|
||||||
|
|
||||||
|
|||||||
@@ -1490,9 +1490,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
ambientocclusion = !ambientocclusion
|
ambientocclusion = !ambientocclusion
|
||||||
if(parent && parent.screen && parent.screen.len)
|
if(parent && parent.screen && parent.screen.len)
|
||||||
var/obj/screen/plane_master/game_world/PM = locate(/obj/screen/plane_master/game_world) in parent.screen
|
var/obj/screen/plane_master/game_world/PM = locate(/obj/screen/plane_master/game_world) in parent.screen
|
||||||
PM.filters -= AMBIENT_OCCLUSION
|
PM.backdrop(parent.mob)
|
||||||
if(ambientocclusion)
|
|
||||||
PM.filters += AMBIENT_OCCLUSION
|
|
||||||
|
|
||||||
if("save")
|
if("save")
|
||||||
save_preferences()
|
save_preferences()
|
||||||
|
|||||||
Reference in New Issue
Block a user