From: Markus Armbruster Date: Wed, 19 Jan 2011 20:05:44 +0000 (+0100) Subject: Make share_bmap() do nothing for sharing with oneself X-Git-Tag: v4.3.27~141 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=58cbd4cc2e13bae3fd6c6737df49a7c8ca65be49 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". --- diff --git a/src/lib/subs/maps.c b/src/lib/subs/maps.c index 4a8f585be..e2c4d8900 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;