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 c7b2d8d4 authored by Deucе's avatar Deucе 👌🏾

Clear battle flag after running a random ref

parent 7d9d878e
......@@ -2285,7 +2285,10 @@ function move_player(xoff, yoff) {
if (moved && !special && map.battleodds > 0 && map.reffile !== '' && map.refsection !== '') {
if (random(map.battleodds) === 0) {
run_ref(map.refsection, map.reffile);
// TODO: Is this where we clear battle?!?!
player.battle = 0;
update_update();
if (pending_timeout !== undefined)
handle_timeout(pending_timeout);
}
}
}
......
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