From 58cbd4cc2e13bae3fd6c6737df49a7c8ca65be49 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 19 Jan 2011 21:05:44 +0100 Subject: [PATCH] Make share_bmap() do nothing for sharing with oneself Before, it overwrote '?', '.', ' ' in the bmap with the capitalized country letter, but only for sectors the player owns. Pretty harmless, just weird. It can't happen currently, because sharebmap with self fails with "does not have friendly relations towards you". --- src/lib/subs/maps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/subs/maps.c b/src/lib/subs/maps.c index 4a8f585b..e2c4d890 100644 --- a/src/lib/subs/maps.c +++ b/src/lib/subs/maps.c @@ -420,6 +420,9 @@ share_bmap(natid from, natid to, struct nstr_sect *ns, char des, char todes; char from_des = *from_name; + if (from == to) + return 0; + if (isalpha(from_des)) from_des &= ~0x20;