Skip to content

Commit

Permalink
oops, alone shuttle runtime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BeebBeebBoob committed Oct 21, 2024
1 parent 33ec2bd commit 80bf1ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions code/controllers/subsystem/shuttles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ SUBSYSTEM_DEF(shuttle)
for(var/obj/docking_port/stationary/S in stationary)
if(S.id == id)
return S
if(!alone_shuttle)
log_runtime(EXCEPTION("couldn't find dock with id: [id]"))
log_runtime(EXCEPTION("couldn't find dock with id: [id]"))

/datum/controller/subsystem/shuttle/proc/secondsToRefuel()
var/elapsed = world.time - SSticker.round_start_time
Expand Down
6 changes: 5 additions & 1 deletion code/modules/shuttle/shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,11 @@


/obj/docking_port/mobile/proc/findRoundstartDock()
return SSshuttle.getDock(roundstart_move)
for(var/obj/docking_port/stationary/S in SSshuttle.stationary)
if(S.id == roundstart_move)
return S
if(alone_shuttle)
log_runtime(EXCEPTION("couldn't find roundstart dock for \"[name]\" with id: [id]"))

/obj/docking_port/mobile/proc/dockRoundstart()
var/port = findRoundstartDock()
Expand Down

0 comments on commit 80bf1ec

Please sign in to comment.