Merge pull request #1007 from daklaj/vehicle-speed

Adjust vehicles speed to match global move speed
This commit is contained in:
Nich
2018-05-26 17:35:33 +02:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -148,7 +148,11 @@
if(world.time < next_vehicle_move)
return
next_vehicle_move = world.time + vehicle_move_delay
var/static/datum/config_entry/number/run_delay/config_run_delay //yogs start
if(isnull(config_run_delay))
config_run_delay = CONFIG_GET(number/run_delay)
var/combined_delay = vehicle_move_delay * config_run_delay
next_vehicle_move = world.time + combined_delay //yogs end
if(keycheck(user))
var/turf/next = get_step(AM, direction)

View File

@@ -109,7 +109,11 @@
vehicle_move(direction)
/obj/vehicle/proc/vehicle_move(direction)
if(lastmove + movedelay > world.time)
var/static/datum/config_entry/number/run_delay/config_run_delay //yogs start
if(isnull(config_run_delay))
config_run_delay = CONFIG_GET(number/run_delay)
var/combined_delay = movedelay * config_run_delay
if(lastmove + combined_delay > world.time) //yogs end
return FALSE
lastmove = world.time
if(trailer)