Merge branch 'master' into upstream-merge-33627
This commit is contained in:
@@ -119,7 +119,7 @@
|
||||
return
|
||||
|
||||
if(!my_port)
|
||||
my_port = new(locate(eyeobj.x - x_offset, eyeobj.y - y_offset, eyeobj.z))
|
||||
my_port = new()
|
||||
my_port.name = shuttlePortName
|
||||
my_port.id = shuttlePortId
|
||||
my_port.height = shuttle_port.height
|
||||
@@ -128,6 +128,7 @@
|
||||
my_port.dwidth = shuttle_port.dwidth
|
||||
my_port.hidden = shuttle_port.hidden
|
||||
my_port.dir = the_eye.dir
|
||||
my_port.forceMove(locate(eyeobj.x - x_offset, eyeobj.y - y_offset, eyeobj.z))
|
||||
if(current_user.client)
|
||||
current_user.client.images -= the_eye.placed_images
|
||||
|
||||
|
||||
@@ -146,13 +146,13 @@
|
||||
var/y0 = bounds[2]
|
||||
var/x1 = bounds[3]
|
||||
var/y1 = bounds[4]
|
||||
if(x0 <= x1 && !IsInRange(T.x, x0, x1))
|
||||
if(x0 <= x1 && !ISINRANGE(T.x, x0, x1))
|
||||
return FALSE
|
||||
else if(!IsInRange(T.x, x1, x0))
|
||||
else if(!ISINRANGE(T.x, x1, x0))
|
||||
return FALSE
|
||||
if(y0 <= y1 && !IsInRange(T.y, y0, y1))
|
||||
if(y0 <= y1 && !ISINRANGE(T.y, y0, y1))
|
||||
return FALSE
|
||||
else if(!IsInRange(T.y, y1, y0))
|
||||
else if(!ISINRANGE(T.y, y1, y0))
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
@@ -697,13 +697,13 @@
|
||||
var/change_per_engine = (1 - ENGINE_COEFF_MIN) / ENGINE_DEFAULT_MAXSPEED_ENGINES // 5 by default
|
||||
if(initial_engines > 0)
|
||||
change_per_engine = (1 - ENGINE_COEFF_MIN) / initial_engines // or however many it had
|
||||
return Clamp(1 - delta * change_per_engine,ENGINE_COEFF_MIN,ENGINE_COEFF_MAX)
|
||||
return CLAMP(1 - delta * change_per_engine,ENGINE_COEFF_MIN,ENGINE_COEFF_MAX)
|
||||
if(new_value < initial_engines)
|
||||
var/delta = initial_engines - new_value
|
||||
var/change_per_engine = 1 //doesn't really matter should not be happening for 0 engine shuttles
|
||||
if(initial_engines > 0)
|
||||
change_per_engine = (ENGINE_COEFF_MAX - 1) / initial_engines //just linear drop to max delay
|
||||
return Clamp(1 + delta * change_per_engine,ENGINE_COEFF_MIN,ENGINE_COEFF_MAX)
|
||||
return CLAMP(1 + delta * change_per_engine,ENGINE_COEFF_MIN,ENGINE_COEFF_MAX)
|
||||
|
||||
|
||||
/obj/docking_port/mobile/proc/in_flight()
|
||||
|
||||
@@ -56,8 +56,8 @@
|
||||
shuttlePortName = "custom location"
|
||||
jumpto_ports = list("syndicate_ne" = 1, "syndicate_nw" = 1, "syndicate_n" = 1, "syndicate_se" = 1, "syndicate_sw" = 1, "syndicate_s" = 1)
|
||||
view_range = 13
|
||||
x_offset = -4
|
||||
y_offset = -2
|
||||
x_offset = -7
|
||||
y_offset = -1
|
||||
see_hidden = TRUE
|
||||
|
||||
#undef SYNDICATE_CHALLENGE_TIMER
|
||||
Reference in New Issue
Block a user