mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #6563 from mwerezak/cargo
Fixes supply shuttle state when returning
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
if(!origin)
|
||||
origin = get_location_area(location)
|
||||
|
||||
if (!at_station()) //at centcom
|
||||
supply_controller.buy()
|
||||
|
||||
//it would be cool to play a sound here
|
||||
moving_status = SHUTTLE_WARMUP
|
||||
spawn(warmup_time*10)
|
||||
@@ -34,11 +31,15 @@
|
||||
moving_status = SHUTTLE_IDLE
|
||||
return
|
||||
|
||||
if (!at_station()) //at centcom
|
||||
supply_controller.buy()
|
||||
|
||||
//We pretend it's a long_jump by making the shuttle stay at centcom for the "in-transit" period.
|
||||
var/area/away_area = get_location_area(away_location)
|
||||
if (origin == away_area)
|
||||
moving_status = SHUTTLE_INTRANSIT //pretend
|
||||
else
|
||||
moving_status = SHUTTLE_INTRANSIT
|
||||
|
||||
//If we are at the away_area then we are just pretending to move, otherwise actually do the move
|
||||
if (origin != away_area)
|
||||
move(origin, away_area)
|
||||
|
||||
//wait ETA here.
|
||||
|
||||
Reference in New Issue
Block a user