mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
[MIRROR] Minor plane cube cleanup [MDB IGNORE] (#18223)
* Minor plane cube cleanup (#72038) ## About The Pull Request [Fixes area lighting not working on turf change in multiz cases](https://github.com/tgstation/tgstation/commit/7b92deffbca92a834cb0a361fd685de51a12ea53) If you modify a area lit turf when using multiz, it'd end up using the wrong plane for its light, because of stupid shit on my part. Stupid shit resolved [Fixes some uses of plane masters that only specified one rather then all](https://github.com/tgstation/tgstation/commit/a59ec96d29710b967bf8b3ffe8210b230cb194b3) We almost never only want to show SOME hidden planes. Should really make a helper for this someday * Minor plane cube cleanup Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
// We will only run this logic on turfs off the prime z layer
|
||||
// Since on the prime z layer, we use an overlay on the area instead, to save time
|
||||
if(SSmapping.z_level_to_plane_offset[z])
|
||||
var/index = SSmapping.z_level_to_plane_offset[z]
|
||||
var/index = SSmapping.z_level_to_plane_offset[z] + 1
|
||||
//Inherit overlay of new area
|
||||
if(old_area.lighting_effects)
|
||||
cut_overlay(old_area.lighting_effects[index])
|
||||
|
||||
Reference in New Issue
Block a user