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 4d314fe2 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix @fight more... put it in move_player().

Also, keep the cursor at the player position a bit better.
parent bbafee97
......@@ -2053,6 +2053,7 @@ function update(skip) {
foreground(15);
background(map.mapinfo[getpoffset()].backcolour);
dk.console.print('\x02');
dk.console.gotoxy(player.x - 1, player.y - 1);
last_draw = {x:player.x - 1, y:player.y - 1};
update_update();
if ((!skip) || now > next_update) {
......@@ -2227,6 +2228,8 @@ function move_player(xoff, yoff) {
}
}
});
while (enemy !== undefined)
offline_battle();
erase_player();
update(true);
perday = getvar('`v05');
......@@ -3688,10 +3691,6 @@ function do_map()
ch = ''
while (ch != 'Q') {
if (enemy !== undefined) {
offline_battle();
continue;
}
while (!dk.console.waitkey(game.delay)) {
update();
};
......
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