Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 17ac4341 authored by Deucе's avatar Deucе 👌🏾

Write player record any time battle is set.

Should eliminate ghost "busy" status.
parent 3dcc121a
...@@ -610,6 +610,7 @@ function run_ref(sec, fname) ...@@ -610,6 +610,7 @@ function run_ref(sec, fname)
// Turn red for other players, and run @#busy if other player interacts // Turn red for other players, and run @#busy if other player interacts
// this toggles battle... // this toggles battle...
player.battle = 1; player.battle = 1;
player.put();
update_update(); update_update();
}, },
'buymanager':function(args) { 'buymanager':function(args) {
...@@ -2266,6 +2267,7 @@ function move_player(xoff, yoff) { ...@@ -2266,6 +2267,7 @@ function move_player(xoff, yoff) {
run_ref(s.refsection, s.reffile); run_ref(s.refsection, s.reffile);
player.battle = 0; player.battle = 0;
update_update(); update_update();
player.put();
if (pending_timeout !== undefined) if (pending_timeout !== undefined)
handle_timeout(pending_timeout); handle_timeout(pending_timeout);
} }
...@@ -2288,6 +2290,7 @@ function move_player(xoff, yoff) { ...@@ -2288,6 +2290,7 @@ function move_player(xoff, yoff) {
run_ref(map.refsection, map.reffile); run_ref(map.refsection, map.reffile);
player.battle = 0; player.battle = 0;
update_update(); update_update();
player.put();
if (pending_timeout !== undefined) if (pending_timeout !== undefined)
handle_timeout(pending_timeout); handle_timeout(pending_timeout);
while (enemy !== undefined) while (enemy !== undefined)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment