Skip to content

Commit

Permalink
Resting offset fix 2 (ParadiseSS13#27316)
Browse files Browse the repository at this point in the history
* fix

* revert

---------

Co-authored-by: Bmon <no@email.com>
  • Loading branch information
Bm0n and Bmon authored Nov 11, 2024
1 parent 6aca801 commit c4bde0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/carbon_update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
final_pixel_y = pixel_y
else //if(lying != 0)
if(lying_prev == 0) //Standing to lying
final_pixel_y = PIXEL_Y_OFFSET_LYING
final_pixel_y = pixel_y + PIXEL_Y_OFFSET_LYING
if(dir & (EAST|WEST)) //Facing east or west
final_dir = pick(NORTH, SOUTH) //So you fall on your side rather than your face or ass
if(resize != RESIZE_DEFAULT_SIZE)
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/living_status_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ STATUS EFFECTS
layer = BLASTDOOR_LAYER
else
layer = LYING_MOB_LAYER //so mob lying always appear behind standing mobs
pixel_y = PIXEL_Y_OFFSET_LYING
ADD_TRAIT(src, TRAIT_UI_BLOCKED, LYING_DOWN_TRAIT)
ADD_TRAIT(src, TRAIT_CANNOT_PULL, LYING_DOWN_TRAIT)
RegisterSignal(src, COMSIG_ATOM_DIR_CHANGE, PROC_REF(orient_crawling))
Expand Down

0 comments on commit c4bde0d

Please sign in to comment.