initial port
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
///Contains admin info. Null if client is not an admin.
|
||||
var/datum/admins/holder = null
|
||||
var/datum/click_intercept = null // Needs to implement InterceptClickOn(user,params,atom) proc
|
||||
///Time when the click was intercepted
|
||||
var/click_intercept_time = 0
|
||||
var/AI_Interact = 0
|
||||
|
||||
var/jobbancache = null //Used to cache this client's jobbans to save on DB queries
|
||||
@@ -78,6 +80,8 @@
|
||||
//These two vars are used to make a special mouse cursor, with a unique icon for clicking
|
||||
var/mouse_up_icon = null
|
||||
var/mouse_down_icon = null
|
||||
///used to override the mouse cursor so it doesnt get reset
|
||||
var/mouse_override_icon = null
|
||||
|
||||
var/ip_intel = "Disabled"
|
||||
|
||||
|
||||
@@ -422,7 +422,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
if( (world.address == address || !address) && !GLOB.host )
|
||||
GLOB.host = key
|
||||
world.update_status()
|
||||
|
||||
|
||||
if(holder)
|
||||
add_admin_verbs()
|
||||
var/admin_memo_note = get_message_output("memo")
|
||||
@@ -867,10 +867,17 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
ip_intel = res.intel
|
||||
|
||||
/client/Click(atom/object, atom/location, control, params, ignore_spam = FALSE, extra_info)
|
||||
if(last_click > world.time - world.tick_lag)
|
||||
/*if(last_click > world.time - world.tick_lag)
|
||||
return
|
||||
last_activity = world.time
|
||||
last_click = world.time
|
||||
last_click = world.time*/
|
||||
if(!control)
|
||||
return
|
||||
if(click_intercept_time)
|
||||
if(click_intercept_time >= world.time)
|
||||
click_intercept_time = 0 //Reset and return. Next click should work, but not this one.
|
||||
return
|
||||
click_intercept_time = 0 //Just reset. Let's not keep re-checking forever.
|
||||
var/list/L = params2list(params)
|
||||
|
||||
if(L["drag"])
|
||||
|
||||
Reference in New Issue
Block a user