Skip to content
Snippets Groups Projects
Commit 528289a6 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

time() not now()

parent 1cf3fd8d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -297,7 +297,7 @@ function insane_run_ref(sec, fname, refret) ...@@ -297,7 +297,7 @@ function insane_run_ref(sec, fname, refret)
'getkey':function(args) { 'getkey':function(args) {
if (!dk.console.waitkey(0)) if (!dk.console.waitkey(0))
setvar(args[0], '_'); setvar(args[0], '_');
lastkey = now(); lastkey = time();
setvar(args[0], dk.console.getkey()); setvar(args[0], dk.console.getkey());
}, },
'goto':function(args) { 'goto':function(args) {
...@@ -1947,7 +1947,7 @@ function chat(op) ...@@ -1947,7 +1947,7 @@ function chat(op)
} }
} }
if (dk.console.waitkey(game.delay)) { if (dk.console.waitkey(game.delay)) {
lastkey = now(); lastkey = time();
sw(' '); sw(' ');
l = clean_str(dk.console.getstr({len:72, attr:new Attribute(31), input_box:true, crlf:false, timeout:idle_timeout * 1000})); l = clean_str(dk.console.getstr({len:72, attr:new Attribute(31), input_box:true, crlf:false, timeout:idle_timeout * 1000}));
lastkey = time(); lastkey = time();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment