throttles mouse movement calls
This commit is contained in:
@@ -92,7 +92,11 @@
|
||||
. = 1
|
||||
|
||||
//Please don't roast me too hard
|
||||
//Oh don't worry, We Will.
|
||||
/client/MouseMove(object, location, control, params)
|
||||
if(next_mousemove > world.time)
|
||||
return
|
||||
next_mousemove = world.time + world.tick_lag
|
||||
mouseParams = params
|
||||
mouse_location_ref = WEAKREF(location)
|
||||
mouse_object_ref = WEAKREF(object)
|
||||
|
||||
@@ -189,3 +189,6 @@
|
||||
|
||||
/// AFK tracking
|
||||
var/last_activity = 0
|
||||
|
||||
/// The next point in time at which the client is allowed to send a mousemove()
|
||||
var/next_mousemove = 0
|
||||
|
||||
Reference in New Issue
Block a user