more
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
var/move_delay = 0
|
||||
var/area = null
|
||||
|
||||
/// Last time we Click()ed. No clicking twice in one tick!
|
||||
var/last_click = 0
|
||||
|
||||
///////////////
|
||||
//SOUND STUFF//
|
||||
///////////////
|
||||
|
||||
@@ -772,6 +772,9 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
|
||||
ip_intel = res.intel
|
||||
|
||||
/client/Click(atom/object, atom/location, control, params, ignore_spam = FALSE)
|
||||
if(last_click > world.time - world.tick_lag)
|
||||
return
|
||||
last_click = world.time
|
||||
var/ab = FALSE
|
||||
var/list/L = params2list(params)
|
||||
if (object && object == middragatom && L["left"])
|
||||
|
||||
@@ -8,9 +8,6 @@
|
||||
|
||||
/mob
|
||||
// CLICKDELAY AND RELATED
|
||||
/// Last time we clicked. No clicking twice in one tick, please! This should be directly set and checked.
|
||||
var/last_click = 0
|
||||
|
||||
/// Generic clickdelay variable. Marks down the last world.time we did something that should cause or impact generic clickdelay. This should be directly set or set using [DelayNextAction()]. This should only be checked using [CheckActionCooldown()].
|
||||
var/last_action = 0
|
||||
/// Generic clickdelay variable. Next world.time we should be able to do something that respects generic clickdelay. This should be set using [DelayNextAction()] This should only be checked using [CheckActionCooldown()].
|
||||
|
||||
Reference in New Issue
Block a user