Skip to content

Commit

Permalink
Quickfix to shuttle power usage (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Feb 14, 2024
1 parent 90318fc commit 5ffa57e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/shuttles/shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@
if(istype(old_location))
old_location.shuttle_departed(src)
destination.shuttle_arrived(src)
// Prevents power usage duplication
var/list/retally_areas
if(isarea(shuttle_area))
retally_areas = list(shuttle_area)
else if(islist(shuttle_area))
retally_areas = shuttle_area
for(var/area/A in retally_areas)
A.retally_power()
return TRUE

//just moves the shuttle from A to B, if it can be moved
Expand Down

0 comments on commit 5ffa57e

Please sign in to comment.