]> git.pond.sub.org Git - empserver/commitdiff
edit: Fix edit l key 'L' not to mess up coastal flag
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 18 Jan 2014 11:14:02 +0000 (12:14 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 Feb 2014 12:19:24 +0000 (13:19 +0100)
Screwed up since Chainsaw added the means to copy a sector.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/edit.c
tests/actofgod/final.xdump

index 17eaddc72e00709c9da93645d6675a3362d707a3..2a959b4faaf6c85e86989032bcb71c2c2e81f0b7 100644 (file)
@@ -561,6 +561,7 @@ edit_sect(struct sctstr *sect, char *key, char *p)
                         sect->sct_own);
        sect->sct_x = newx;
        sect->sct_y = newy;
+       sect->sct_coastal = newsect.sct_coastal;
        ef_set_uid(EF_SECTOR, sect, XYOFFSET(newx, newy));
        break;
     case 'D':
index c9f3c269fb4aac4874cc8e7c83f0fd3247fbfe94..d593eed7b922578ae8b2c4d0dcea345b16c1b205 100644 (file)
@@ -110,7 +110,7 @@ owner xloc yloc des effic mobil off loyal terr0 terr1 terr2 terr3 dterr xdist yd
 0 -2 -8 4 0 0 0 0 0 0 0 0 0 -2 -8 0 0 0 1 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 0 0 0 0 0 0 0
 3 1 -7 4 0 0 0 0 0 0 0 0 0 1 -7 0 0 100 1 4 0 0 0 0 0 3 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 healthy 0 0 0 0 0 0 0 0
 3 3 -7 4 0 0 0 0 0 0 0 0 0 3 -7 0 0 100 0 4 0 0 0 0 0 3 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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