Skip to content

Commit

Permalink
Afterimage actual fix (#16301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon committed Jul 9, 2024
1 parent e05d4c1 commit 3b07dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions code/datums/components/after_image.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@
/datum/component/after_image/proc/spawn_image()
if(!previous_loc || get_turf(owner) == previous_loc)
return

var/obj/effect/temp_visual/after_image/after_image = new(previous_loc, owner, image_duration)
after_image.mouse_opacity = MOUSE_OPACITY_TRANSPARENT
after_image.layer = BELOW_MOB_LAYER

//need to recalculate position based on glide_size since it's not possible to get otherwise
var/per_step = glide_size * 2 //i don't know why i need to multiply by 2, but that's what seems to make it line up properly
Expand Down
2 changes: 2 additions & 0 deletions code/game/objects/effects/temporary_visuals/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ GLOBAL_LIST_EMPTY(blood_particles)
after_image.density = initial(density)
after_image.alpha = initial(alpha)
after_image.appearance_flags = RESET_COLOR|RESET_ALPHA|PASS_MOUSE
after_image.mouse_opacity = MOUSE_OPACITY_TRANSPARENT
after_image.layer = BELOW_MOB_LAYER
after_image.setDir(owner.dir)
after_image.pixel_x = owner.pixel_x
after_image.pixel_y = owner.pixel_y
Expand Down

0 comments on commit 3b07dcf

Please sign in to comment.