Skip to content

Commit

Permalink
firaview
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Aug 24, 2023
1 parent 8b89afa commit 6089696
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions code/game/atoms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,9 @@ Parameters are passed from New.

if(light_system != MOVABLE_LIGHT && light_power && light_range)
update_light()
if(loc)
if(isturf(loc))
if(opacity)
var/turf/opaque_turf = loc
opaque_turf.directional_opacity = ALL_CARDINALS // No need to recalculate it in this case, it's guaranteed to be on afterwards anyways.
if(isturf(loc) && opacity)
var/turf/opaque_turf = loc
opaque_turf.directional_opacity = ALL_CARDINALS // No need to recalculate it in this case, it's guaranteed to be on afterwards anyways.


pass_flags = pass_flags_cache[type]
Expand Down

0 comments on commit 6089696

Please sign in to comment.