mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[MIRROR] Renames delta time to be a more obvious name [MDB IGNORE] (#20507)
* Renames delta time to be a more obvious name * updates to our code --------- Co-authored-by: oranges <email@oranges.net.nz> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
oranges
Gandalf
parent
34b66981ce
commit
9a594755f3
@@ -68,13 +68,13 @@ GLOBAL_LIST_EMPTY(ntnet_relays)
|
||||
icon_state = "bus[is_operational ? null : "_off"]"
|
||||
return ..()
|
||||
|
||||
/obj/machinery/ntnet_relay/process(delta_time)
|
||||
/obj/machinery/ntnet_relay/process(seconds_per_tick)
|
||||
update_use_power(is_operational ? ACTIVE_POWER_USE : IDLE_POWER_USE)
|
||||
|
||||
update_appearance()
|
||||
|
||||
if(dos_overload > 0)
|
||||
dos_overload = max(0, dos_overload - dos_dissipate * delta_time)
|
||||
dos_overload = max(0, dos_overload - dos_dissipate * seconds_per_tick)
|
||||
|
||||
// If DoS traffic exceeded capacity, crash.
|
||||
if((dos_overload > dos_capacity) && !dos_failure)
|
||||
|
||||
Reference in New Issue
Block a user