summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-04-28 23:34:56 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-04-28 23:39:18 (GMT)
commit38057065c2b18bd455f150e32348a266ecfc1355 (patch)
tree2e50fb1c556746f75f4db50ec4a4b87efd1a95de /src/main.c
parent34bfd77aa5210cc66df9902e1bfebba0b5889706 (diff)
downloadpowder-38057065c2b18bd455f150e32348a266ecfc1355.zip
powder-38057065c2b18bd455f150e32348a266ecfc1355.tar.gz
Fix bugs when moving signs
Signs could not be repositioned on top of another sign (dependent on the indices of the two signs), and could not be placed after selecting an element from the menu.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4e60674..683cd96 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2305,7 +2305,7 @@ int main(int argc, char *argv[])
}
}
- if (c==WL_SIGN+100)
+ if (c==WL_SIGN+100 || MSIGN!=-1) // if sign tool is selected or a sign is being moved
{
if (!bq)
add_sign_ui(vid_buf, x, y);