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

Erase player before draying it in update().

Fixes moveback/update duplicate character issue in REFs.
parent fcb6e1db
No related branches found
No related tags found
No related merge requests found
......@@ -3466,6 +3466,7 @@ function update(skip) {
var orig_attr = dk.console.attr.value;
if (map !== undefined) {
erase_player();
dk.console.gotoxy(player.x - 1, player.y - 1);
foreground(15);
background(map.mapinfo[getpoffset()].backcolour);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment