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

View File

@@ -97,15 +97,15 @@
largest_move_time = M.next_move - world.time
else
largest_move_time = 1
if(M.lastDblClick >= largest_click_time)
if(M.lastClick >= largest_click_time)
largest_click_mob = M
if(M.lastDblClick > world.time)
largest_click_time = M.lastDblClick - world.time
if(M.lastClick > world.time)
largest_click_time = M.lastClick - world.time
else
largest_click_time = 0
log_admin("DEBUG: [key_name(M)] next_move = [M.next_move] lastDblClick = [M.lastDblClick] world.time = [world.time]")
log_admin("DEBUG: [key_name(M)] next_move = [M.next_move] lastClick = [M.lastClick] world.time = [world.time]")
M.next_move = 1
M.lastDblClick = 0
M.lastClick = 0
message_admins("[key_name_admin(largest_move_mob)] had the largest move delay with [largest_move_time] frames / [largest_move_time/10] seconds!", 1)
message_admins("[key_name_admin(largest_click_mob)] had the largest click delay with [largest_click_time] frames / [largest_click_time/10] seconds!", 1)
message_admins("world.time = [world.time]", 1)