Merge pull request #7920 from Atermonera/ping_verb_fix

Removes ping subsystem that was breaking chat
This commit is contained in:
Schnayy
2021-02-26 08:58:53 -06:00
committed by GitHub
8 changed files with 0 additions and 53 deletions
-3
View File
@@ -74,6 +74,3 @@
var/connection_realtime
///world.timeofday they connected
var/connection_timeofday
var/lastping = 0
var/avgping = 0
@@ -66,8 +66,6 @@
entry += "[round(seconds / 60)] minutes, "
entry += "[seconds % 60] seconds)"
entry += "</td><td>"
entry += " ([round(C.avgping, 1)]ms)"
entry += "</td><td>"
entry += " (<A HREF='?_src_=holder;adminmoreinfo=\ref[C.mob]'>?</A>)"
entry += "</td></tr>"
@@ -88,7 +86,6 @@
else
entry += " - <span class='green'>Playing</span><br>"
entry += " ([round(C.avgping, 1)]ms)"
Lines += entry
msg += "<table>"
-10
View File
@@ -1,13 +1,3 @@
/client/verb/update_ping(time as num)
set instant = TRUE
set name = ".update_ping"
var/ping = pingfromtime(time)
lastping = ping
if (!avgping)
avgping = ping
else
avgping = MC_AVERAGE_SLOW(avgping, ping)
/client/proc/pingfromtime(time)
return ((world.time+world.tick_lag*world.tick_usage/100)-time)*100
-2
View File
@@ -49,7 +49,6 @@
entry += "[seconds % 60] seconds)"
entry += " (<A HREF='?_src_=holder;adminmoreinfo=\ref[C.mob]'>?</A>)"
entry += " ([round(C.avgping, 1)]ms)"
Lines += entry
else
for(var/client/C in GLOB.clients)
@@ -58,7 +57,6 @@
entry = C.holder.fakekey
else
entry = C.key
entry += " ([round(C.avgping, 1)]ms)"
Lines += entry
for(var/line in sortList(Lines))