Skip to content

Commit

Permalink
Fixes surgery delays (ParadiseSS13#27440)
Browse files Browse the repository at this point in the history
* Fixes surgery delays

* easy fix
  • Loading branch information
Contrabang authored Nov 23, 2024
1 parent 0de5514 commit f978108
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/surgery/surgery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
surgery.step_in_progress = FALSE
return SURGERY_INITIATE_SUCCESS

play_preop_sound(user, target, target_zone, tool, surgery)
INVOKE_ASYNC(src, PROC_REF(play_preop_sound), user, target, target_zone, tool, surgery)

if(tool)
speed_mod = tool.toolspeed
Expand Down Expand Up @@ -394,10 +394,10 @@

surgery.step_in_progress = FALSE
if(advance)
play_success_sound(user, target, target_zone, tool, surgery)
INVOKE_ASYNC(src, PROC_REF(play_success_sound), user, target, target_zone, tool, surgery)
return SURGERY_INITIATE_SUCCESS
else
play_failure_sound(user, target, target_zone, tool, surgery)
INVOKE_ASYNC(src, PROC_REF(play_failure_sound), user, target, target_zone, tool, surgery)
return SURGERY_INITIATE_FAILURE

/**
Expand Down Expand Up @@ -510,7 +510,7 @@
if(user.gloves)
germ_level = user.gloves.germ_level
target_organ.germ_level = max(germ_level, target_organ.germ_level)
spread_germs_by_incision(target_organ, tool) //germ spread from environement to patient
INVOKE_ASYNC(src, PROC_REF(spread_germs_by_incision), target_organ, tool) //germ spread from environement to patient

/**
* Spread germs directly from a tool.
Expand Down

0 comments on commit f978108

Please sign in to comment.