[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:
SkyratBot
2023-04-12 20:45:43 +01:00
committed by GitHub
co-authored by oranges Gandalf
parent 34b66981ce
commit 9a594755f3
540 changed files with 3418 additions and 3424 deletions
+2 -2
View File
@@ -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)