Skip to content

Commit

Permalink
[MIRROR] Fixes tram electrocuting law abiding crosswalk users [NO GBP…
Browse files Browse the repository at this point in the history
…] [MDB IGNORE] (#690)

* Fixes tram electrocuting law abiding crosswalk users [NO GBP] (#79780)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: lessthanthree <[email protected]>
  • Loading branch information
3 people authored Nov 18, 2023
1 parent cb34646 commit 3ef103a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/components/energized.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
// Try to be agnostic about N-S vs E-W movement
if(tram.travel_direction & (NORTH|SOUTH))
plate_pos = source.y
tram_pos = source.y
tram_pos = tram_part.y
tram_velocity_sign = tram.travel_direction & NORTH ? 1 : -1
else
plate_pos = source.x
tram_pos = source.x
tram_pos = tram_part.x
tram_velocity_sign = tram.travel_direction & EAST ? 1 : -1

// How far away are we? negative if already passed.
Expand Down
3 changes: 3 additions & 0 deletions code/modules/transport/tram/tram_floors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
return
return ..()

/turf/open/floor/tram/plate/energized/broken
broken = TRUE

// Resetting the tram contents to its original state needs the turf to be there
/turf/open/indestructible/tram
name = "tram guideway"
Expand Down

0 comments on commit 3ef103a

Please sign in to comment.