One click queue system added, which affects gameplay completely.

Previously: After clicking on one thing, you could not click on another thing before 1 second had passed, and had to spam until 1 second had passed.
Now: After one click, if there's a second click right after, it will be queued and executed automatically after the 1 second has passed.

Tried to remove redundant DblClick() entries and changed them to QueueClick() where appropriate. Report for bugs.

Updated change log. :-)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1019 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Skiedrake
2011-02-11 15:38:34 +00:00
parent a697428db7
commit 098a5b73e2
10 changed files with 100 additions and 50 deletions
+5
View File
@@ -200,3 +200,8 @@ var
sqlpass = ""
sqllogging = 0 // Should we log deaths, population stats, etc?
// Changing this will affect on how quickly players are allowed to click on things.
// Measured in 1/10th of a second. Defaults to 10 = 1 sec. -- Skie
// TODO: Make changable by admin command? I dunno.
ClickDelay = 10
+2 -1
View File
@@ -93,7 +93,8 @@
var/a_intent = "help"
var/m_int = null
var/m_intent = "run"
var/lastDblClick = 0
var/lastClick = 0
var/next_click_queued = 0 // For one UI-click buffer system
var/lastKnownIP = null
var/obj/stool/buckled = null
var/obj/item/weapon/handcuffs/handcuffed = null